diff options
author | Uwe Steinmann <steinm@php.net> | 2000-03-02 16:58:07 +0000 |
---|---|---|
committer | Uwe Steinmann <steinm@php.net> | 2000-03-02 16:58:07 +0000 |
commit | 2552876786f069c7c4979e579bf3b96d4af654a7 (patch) | |
tree | d7693a09a9fe630ef8eea2151ea1945fce0bc141 /tests | |
parent | ad311c35c75f1f99ab6b505e01fc1305dae05ae3 (diff) | |
download | php-git-2552876786f069c7c4979e579bf3b96d4af654a7.tar.gz |
- dom class now distinguishes between $dom->root() and $dom->children()
$dom->root() returns just the element, $dom->children() all nodes e.g.
comments
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testdom | 4 |
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"; |