From: Uwe Steinmann Date: Thu, 3 Feb 2000 21:12:30 +0000 (+0000) Subject: - some more testing X-Git-Tag: BEFORE_SAPIFICATION_FEB_10_2000~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38fb57f9d6d286fd149c8b91c16d618e920bf63f;p=php - some more testing --- diff --git a/tests/testdom b/tests/testdom index 6964242dc6..3b850f4ef9 100644 --- a/tests/testdom +++ b/tests/testdom @@ -52,7 +52,7 @@ $xmlstr = " $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(); + ?>