Re: [xml] xmlParseFile;encode - newbie question





Daniel Veillard wrote:

On Wed, Feb 23, 2005 at 12:55:40PM +0200, Pieter Louw wrote:
xml data:

....
<name>Murray & Karl</name>
....

 this is not XML. You cannot parse this with an XML parser, it must
raise an error and not deliver data. Whatever generating this must be fixed.

 You probably need
   <name>Murray &amp; Karl</name>

 this is not specific to libxml2.

Daniel


That is my question, how do I convert the & to &amp;?

or are there no function to do this in libxml?






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