Re: DOMXML in 4.2.0 problems
| From: | Mike P | Date: | Fri, 10 May 2002 18:27:52 +0000 |
| Subject: | Re: DOMXML in 4.2.0 problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96977@lists.php.net to get a copy of this message | ||
I am having similar difficulties with DOMXML in php4.2.0.
phpinfo() indicates all is well with the setup...
If you get some response, please share!
Thanks!
Mike
"Thalis A. Kalfigopoulos" <thalis@cs.pitt.edu> wrote in message
news:Pine.LNX.4.21.0205092000000.18083-100000@nitrogen.cs.pitt.edu...
> I'm trying to get DOMXML to work with PHP4.2.0. I've compiled
with --with-dom and phpinfo() says it's there:
> DOM/XML enabled
> libxml Version 2.4.18
> HTML Support enabled
> XPath Support enabled
> XPointer Support enabled
>
> The following program though doesn't seem to work:
>
> $xmlstring='a valid xml document here';
> $domdoc=xmldoc($xmlstring);
> $root=$doc->document_element(); <--- throw error
>
> I get an error regarding the call to DomDocument->document_element(). Also
I'm forced to use xmldoc() instead of the newer domxml_open_mem() because it
is also not recognized. What am I missing?
>
> thanks in advance,
> Thalis
>