Invalid chars in XML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
<tag>something & something</tag>.

After I've removed the & everything went fine.  So which chars I should not
put in my file?   Should I use some conversion function like html_entities?

Does the receiver of the XML has to do anything to convert is back?

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux