--TEST-- Bug #41947 (addChild incorrectly registers empty strings as namespaces) --EXTENSIONS-- simplexml --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