summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testdom4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/testdom b/tests/testdom
index 2c64f3de6c..923a88491d 100644
--- a/tests/testdom
+++ b/tests/testdom
@@ -73,9 +73,11 @@ if(!$dom = xmldoc($xmlstr)) {
}
echo "XML Version: ".$dom->version."\n";
$dtd = $dom->dtd();
-$rootnode = $dom->root();
+$rootnode = $dom->children();
foreach($rootnode as $root)
output_node($root);
+$rootnode = $dom->root();
+ output_node($rootnode);
/* This one creates a dom tree made of php objects */
echo "Test 2: creating a tree with php objects\n";