XmlElementPhysical.php Classes XmlElementPhysicalA \Dom\Element (PHP 8.4) is stored by its markup too and reads back as the DOMElement XMLElementType::cast() builds from a string.