DOM XML
| From: | Sebastian A. | Date: | Thu, 25 Apr 2002 18:10:58 +0000 |
| Subject: | DOM XML | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-94607@lists.php.net to get a copy of this message | ||
Hello,
I have been recently doing experiments with the DOM XML function and I am
(not surprisingly) having some problems with it. When I try to run the code
below, I get an error saying I am trying to use and endefined function. To
me it seems that the DOM XML extension is working fine, because I get no
error from xmldoc(), but I am still not sure what the problem is. I am
running PHP 4.2
Code:
<?php
$str = "<?XML
version=\"1.0\"?><me><name>Anyname</name></me>";
$dom = xmldoc($str);
$root = $domxml_root($dom);
echo $root->name;
?>