--TEST-- Bug #41947 (addChild incorrectly registers empty strings as namespaces) --SKIPIF-- --FILE-- '); $grandchild = $xml->addChild('child', null, 'http://myns')->addChild('grandchild', 'hello', ''); $gchild = $xml->xpath("//grandchild"); if (count($gchild) > 0) { echo $gchild[0]."\n"; } ?> --EXPECT-- hello