diff options
author | Uwe Steinmann <steinm@php.net> | 2000-02-09 12:46:32 +0000 |
---|---|---|
committer | Uwe Steinmann <steinm@php.net> | 2000-02-09 12:46:32 +0000 |
commit | 06c586932a4d1a91afc1cc158c63105998af19a5 (patch) | |
tree | cec47918c0f65f7d88cb1bacb1308742664d4cf3 /tests | |
parent | 7ddde4586326c81f718204fb9d7013ae10764128 (diff) | |
download | php-git-06c586932a4d1a91afc1cc158c63105998af19a5.tar.gz |
- fixed several bugs an did some testing. Parsing and creating simple
XML docs should work. See the script testdom.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testdom | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/testdom b/tests/testdom index 3b850f4ef9..d8d3d12d3e 100644 --- a/tests/testdom +++ b/tests/testdom @@ -63,9 +63,11 @@ output_node($rootnode); $doc = newxmldoc("1.0"); $root = $doc->addroot("HTML"); -echo $root->name; $root->newchild("TITLE", "Hier der Titel"); -$root->newchild("BODY", ""); +$body = $root->newchild("BODY", ""); +$table = $body->newchild("TABLE", ""); +$table->setattr("WIDTH", "100%"); +$table->newchild("TR", " "); echo $doc->dumpmem(); ?> |