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

[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]