Re: [PHP] simplexml choking on apparently valid XML - Solved

2010-05-10 Thread Brian Dunning
I was able to resolve this by changing the XML file encoding from UTF-8 to ISO-8859-1. Works like a charm now, with the XML-encoded characters. Thanks to all who offered their help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simplexml choking on apparently valid XML

2010-05-08 Thread Peter Lind
On 8 May 2010 00:39, Nathan Nobbe wrote: > > hmm, both the strings seem to work fine on my laptop: > +1. Have no problem with either string -- WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchs

Re: [PHP] simplexml choking on apparently valid XML

2010-05-08 Thread Deva
& - & amp; added space because browser is converting it to & :) On 5/8/10, Deva wrote: > I think that "&" should be & because you cant use "&" in xml as > independent alphbet > > On 5/7/10, Dan Joseph wrote: >> On Thu, May 6, 2010 at 8:02 PM, Brian Dunning >> wrote: >> >>> Hey all - >>> >>> I'm

Re: [PHP] simplexml choking on apparently valid XML

2010-05-08 Thread Deva
I think that "&" should be & because you cant use "&" in xml as independent alphbet On 5/7/10, Dan Joseph wrote: > On Thu, May 6, 2010 at 8: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 e

Re: [PHP] simplexml choking on apparently valid XML

2010-05-07 Thread Nathan Nobbe
On Fri, May 7, 2010 at 4:32 PM, Brian Dunning wrote: > This time simplexml-load-string also gave me the same error on the > following line: > > Charlie & Brady > > Can anyone confirm whether simplexml-load-string will or will not accept or > allow XML-encoded characters? It seems that it should an

Re: [PHP] simplexml choking on apparently valid XML

2010-05-07 Thread Brian Dunning
This time simplexml-load-string also gave me the same error on the following line: Charlie & Brady 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,

Re: [PHP] simplexml choking on apparently valid XML

2010-05-06 Thread Dan Joseph
On Thu, May 6, 2010 at 8: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: > > Basketball Personalized Notebook -

[PHP] simplexml choking on apparently valid XML

2010-05-06 Thread Brian Dunning
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: Basketball Personalized Notebook - Jeff's It's returning "Premature end of data in tag client_or