[xml] CDATA parsing issue



ÂUsing Libxml 2.7.3 .Â

ÂI am using the reader interface to parse a documentÂ

I have an xml file with the following lineÂ


<icecream><![CDATA[Ben's&Jerry's >>"Mango"<<]]></icecream>


which after parsing is extracted as
Ben's&Jerry's >>"Mango"<<

i would want it as
Ben's&amp;Jerry's&gt;&gt;"Mango"&lt;&lt;


Any clues as to how I could get it in the desired format ?Â
Ben's&amp;Jerry's&gt;&gt;"Mango"&lt;&lt;

ThanksÂ


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