From 38fb57f9d6d286fd149c8b91c16d618e920bf63f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 3 Feb 2000 21:12:30 +0000 Subject: [PATCH] - some more testing --- tests/testdom | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); + ?> -- 2.40.0