2 Replies Latest reply on Dec 2, 2009 8:02 AM by MarionMacDonald

    XML creation in AS2

    DazFaz Level 1

      Hello everyone,


      Im trying to create a text node within a child node:


      user_xml.firstChild.appendChild( user_xml.createTextNode("<![CDATA[------]]>") );


      but when I trace this I get:


      user_xml = <UserDetails>&lt;![CDATA[------]]&gt;</UserDetails>


      Which is not what I need.


      What I need returning is:


      user_xml = <UserDetails><![CDATA[------]]></UserDetails>


      Any help with this matter would be really appreciated.


      Thank you in advance.