Re: DOM XML

From: Date: Thu, 25 Apr 2002 20:57:49 +0000
Subject: Re: DOM XML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94660@lists.php.net to get a copy of this message
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; > ?>

« previous php.general (#94660) next »