Hi All,
I have a
string which is infact an xml data. I want to put this xml data inside a cdata and then set it in my main xml tree:
Currently, when i set my xml data into my main xml tree, the xml data gives me encoding problem.
I want this xml data (which inside <ns3:Text>) to be set as part of CDATA so that it appears properly.
I have just previewed my question and somehow the xml snippet appears without any encoding problem here on the forum. The xml data inside <ns3:Text> appears with & lt ..& gt..etc
Could someone please suggest any standard
java solution with the help of which i can put my xml data inside CData?
Thanks.