I am using actionscript 2 inwhich i am receiving data from server in XML format. Also i send request to server in XML format. But when using special characters like " " , ; it gives some problem. What can be the best way to handle XML data?
Printable View
I am using actionscript 2 inwhich i am receiving data from server in XML format. Also i send request to server in XML format. But when using special characters like " " , ; it gives some problem. What can be the best way to handle XML data?
Put your text in CDATA
e.g.
<nodeName><![CDATA[Put ur text here]]></nodeName>
Thanks vinayak it worked!!!!!!!!!!!!!!!!!!!!!
Now i want to make a xml req in a string and then parse it into xml. So my code is
xmlStr = "<username>" + (![CDATA[xmlInfo.GetUserName()]]) + "</username>";
xml.parseXML(xmlStr);
But I get the error at the first line
There is no property with the name 'CDATA'.
whats wrong?