RES: [PHP] Invalid chars in XML

2010-09-21 Thread Alejandro Michelin Salomon
;<' => '<', '>' => '>' ); return strtr( $sText, $trans ); } Alejandro M.S. -Mensagem original- De: robert mena [mailto:robert.m...@gmail.com] Enviada em: segunda-feira, 20 de setembro de 2010 17

Re: [PHP] Invalid chars in XML

2010-09-20 Thread Ellis Antaya
CDATA tags is what you need --- Ellis (Sent from my iPod) On 2010-09-20, at 16:57, Bastien Koert wrote: > On Mon, Sep 20, 2010 at 4:07 PM, robert mena wrote: >> Hi, >> >> I am trying to parse a XML file with simplexml_load but it gave me error. >> While inspecting the contents I found a & in

Re: [PHP] Invalid chars in XML

2010-09-20 Thread Bastien Koert
On Mon, Sep 20, 2010 at 4:07 PM, robert mena wrote: > Hi, > > I am trying to parse a XML file with simplexml_load but it gave me error. >  While inspecting the contents I found a & inside the value of a tag. > something & something. > > After I've removed the & everything went fine.  So which char

[PHP] Invalid chars in XML

2010-09-20 Thread robert mena
Hi, I am trying to parse a XML file with simplexml_load but it gave me error. While inspecting the contents I found a & inside the value of a tag. something & something. After I've removed the & everything went fine. So which chars I should not put in my file? Should I use some conversion fun