--TEST-- Bug #47531 (No way of removing redundant xmlns: declarations) --EXTENSIONS-- dom --FILE-- loadXML(<<

XML); $root = $doc->documentElement; $elem = $root->firstElementChild->nextElementSibling; var_dump($elem->removeAttribute("xmlns:foo")); echo $doc->saveXML(); ?> --EXPECT-- bool(true)