--TEST-- DOMNode::append() with namespace --SKIPIF-- --FILE-- formatOutput = true; $root = $doc->createElementNS('http://www.w3.org/2005/Atom', 'element'); $doc->appendChild($root); $root->setAttributeNS('http://www.w3.org/2000/xmlns/' ,'xmlns:g', 'http://base.google.com/ns/1.0'); $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house'); $root->append($item); echo $doc->saveXML(), "\n"; ?> --EXPECT-- house