--TEST-- GH-11404 (DOMDocument::savexml and friends omit xmlns="" declaration for null namespace, creating incorrect xml representation of the DOM) --EXTENSIONS-- dom --FILE-- '); $dom2 = Dom\XMLDocument::createFromString(''); $dom1->documentElement->append( $dom1->importNode( $dom2->documentElement ) ); echo $dom1->saveXml(); ?> --EXPECT--