dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: xml special symbol problem

  1. #1
    Member
    Join Date
    Mar 2009
    Location
    Pune
    Posts
    62

    Unhappy 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?

  2. #2
    Senior Member vinayak.kadam's Avatar
    Join Date
    Oct 2006
    Location
    gotoAndPlay("Pune");
    Posts
    831
    Put your text in CDATA

    e.g.

    <nodeName><![CDATA[Put ur text here]]></nodeName>
    As ever,
    Vinayak Kadam

  3. #3
    Member
    Join Date
    Mar 2009
    Location
    Pune
    Posts
    62

    Smile Thanks

    Thanks vinayak it worked!!!!!!!!!!!!!!!!!!!!!

  4. #4
    Member
    Join Date
    Mar 2009
    Location
    Pune
    Posts
    62
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center