Re: simplexml choking on apparently valid XML
| From: | Brian Dunning | Date: | Fri, 07 May 2010 22:32:29 +0000 |
| Subject: | Re: simplexml choking on apparently valid XML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304993@lists.php.net to get a copy of this message | ||
This time simplexml-load-string also gave me the same error on the following line:
<first_name>Charlie & Brady</first_name>
Can anyone confirm whether simplexml-load-string will or will not accept or allow XML-encoded
characters? It seems that it should and would be pretty surprising if it wouldn't.
On May 6, 2010, at 5:02 PM, Brian Dunning wrote:
> Hey all -
>
> I'm using simplexml-load-string just to validation a string of XML, and libxml-get-errors
> to return any errors. It's always worked before, but today it's choking on this line in
> the XML:
>
> <client_orderitem_number>Basketball Personalized Notebook -
> Jeff's</client_orderitem_number>
>
> It's returning "Premature end of data in tag client_orderitem_number line 90"
> but as far as I can tell, Jeff's is properly XML encoded. I can't debug this. Any
> suggestions?
>
> I have run the XML through a couple of online validators and it does come back as valid with no
> errors found.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>