I have an XML object that I want to send to my player via HTTP POST. This is all good when using XML.sendAndLoad.
The problem is that when the XML object I generate contains CDATA, the CDATA is stripped out before the POST occurs.
so if I have:
var xml:XML = new XML("<root><tag><![CDATA[hello]]></tag></root>")
when I do a sendAndLoad this is what gets POSTed:
<root><tag>hello</tag></root>
the same occurs when I try to create the XML using XMLDOM methods like createElement, createTextNode, and appendChild.
the AS2 docs say that CDATA is not supported. Is there a workaround for this? I'm thinking that it could be fixed by extending and overriding the XML class, but I haven't found a way to do it yet.
Thanks!