-
xml special symbol problem
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?
-
Senior Member
Put your text in CDATA
e.g.
<nodeName><![CDATA[Put ur text here]]></nodeName>
-
Thanks
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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|