cvs: /php4/tests testdom
| From: | Uwe Steinmann | Date: | Thu, 03 Feb 2000 21:13:01 +0000 |
| Subject: | cvs: /php4/tests testdom | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-9747@lists.php.net to get a copy of this message | ||
steinm Thu Feb 3 22:13:01 2000 EDT
Modified files:
/php4/tests testdom
Log:
- some more testing
Index: php4/tests/testdom
diff -u php4/tests/testdom:1.2 php4/tests/testdom:1.3
--- php4/tests/testdom:1.2 Wed Jan 26 07:31:29 2000
+++ php4/tests/testdom Thu Feb 3 22:12:30 2000
@@ -52,7 +52,7 @@
$dom = dom($xmlstr);
echo "XML Version: ".$dom->version."\n";
-$dtd = $dom->intdtd();
+$dtd = $dom->dtd();
$rootnode = $dom->root();
/* The following line causes a segm fault if more than 5 methods are in
class node, see ext/domxml/domxml.c */
@@ -60,5 +60,12 @@
/* if the above weren't there, php will probably crash somewhere after here */
output_node($rootnode);
+
+$doc = newxmldoc("1.0");
+$root = $doc->addroot("HTML");
+echo $root->name;
+$root->newchild("TITLE", "Hier der Titel");
+$root->newchild("BODY", "");
+echo $doc->dumpmem();
?>