Re: [PHP4BETA] XML DOM oddity?
| From: | Uwe Steinmann | Date: | Tue, 29 Feb 2000 11:07:55 +0000 |
| Subject: | Re: [PHP4BETA] XML DOM oddity? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11178@lists.php.net to get a copy of this message | ||
On Sat, Feb 26, 2000 at 06:29:33PM -0600, Paul DuBois wrote:
> php 4.0b4-dev
>
> I have a short test script that does nothing but parse an XML string
> a couple of ways and report success or failure:
>
> #! /usr/local/bin/php4 -q
> <?php
>
> $xmlstr = "<?xml version='1.0'?><root></root>";
>
> if ($dom = xmldoc($xmlstr))
> print ("xmldoc: document okay\n");
> else
> print ("xmldoc: document parse error\n");
>
> if ($dom = xmltree($xmlstr))
> print ("xmltree: document okay\n");
> else
> print ("xmltree: document parse error\n");
>
> ?>
>
> When invoked as shown above, the result is:
>
> Entity: line 1: error: End tag : expected '>'
> <?xml version='1.0'?><root></root
> ^
Your suspicion is right. There is still an error in domxml though
I'm not sure wether it is in libxml or in the php module. I'll have
a look at sooner or later.
Uwe
--
Uwe.Steinmann@fernuni-hagen.de
Tel: +2331 987 4528 Fax: +2331 987 375