I'm assuming it's that stray dollar sign you have in front of domxml_root.

J


Sebastian A. wrote:

> 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;
> ?>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to