diff options
author | Uwe Steinmann <steinm@php.net> | 2000-03-14 20:58:10 +0000 |
---|---|---|
committer | Uwe Steinmann <steinm@php.net> | 2000-03-14 20:58:10 +0000 |
commit | db065413d1bee53cc2a2c105bd16490f88954934 (patch) | |
tree | 338c17cf708df44dac0b5a26022b17f797c8a0b7 /tests/testdom | |
parent | 553eb2391d83667dbc49c09bb7a989280ec3a480 (diff) | |
download | php-git-db065413d1bee53cc2a2c105bd16490f88954934.tar.gz |
- fixed invalid class names
- added standalone, encoding attribute to DocDocument class
Diffstat (limited to 'tests/testdom')
-rw-r--r-- | tests/testdom | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testdom b/tests/testdom index a2ba53d186..66281d310b 100644 --- a/tests/testdom +++ b/tests/testdom @@ -42,7 +42,7 @@ function list_attr($node) { } } -$xmlstr = "<?xml version='1.0'?> +$xmlstr = "<?xml version='1.0' standalone='yes'?> <!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd' [ <!ENTITY sp \"spanish\"> ]> @@ -72,6 +72,7 @@ if(!$dom = xmldoc($xmlstr)) { exit; } echo "XML Version: ".$dom->version."\n"; +echo "Standalone: ".$dom->standalone."\n"; $dtd = $dom->dtd(); $rootnode = $dom->children(); foreach($rootnode as $root) @@ -104,4 +105,6 @@ $table->setattr("WIDTH", "100%"); $table->new_child("TR", " "); echo $doc->dumpmem(); +$doc = new TestNode($xmlstr); +var_dump($doc); ?> |