]> granicus.if.org Git - php/commitdiff
- some more testing
authorUwe Steinmann <steinm@php.net>
Thu, 3 Feb 2000 21:12:30 +0000 (21:12 +0000)
committerUwe Steinmann <steinm@php.net>
Thu, 3 Feb 2000 21:12:30 +0000 (21:12 +0000)
tests/testdom

index 6964242dc61e4dfb2e4aa1f82351395d4f8181cf..3b850f4ef9bbab391180b8d6c15c2362857d116d 100644 (file)
@@ -52,7 +52,7 @@ $xmlstr = "<?xml version='1.0'?>
 
 $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 */
@@ -61,4 +61,11 @@ $attr = $rootnode->getattr("language");
 /* 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();
+
 ?>