When I declare an inline XML object in the actionscript of my MXML document,
how do I keep the compiler from throwing errors when I have CDATA in my XML?
(The <mx:Script> already uses CDATA for actionscript)
private function init():void
{
var doc:XML=
<SAMPLE>
<INFO><![CDATA[Cool stuff about Unicorns in Unicode text here.]]></INFO>
</SAMPLE>;
Alert.show(doc.toXMLString());
}
-- Keith H --
www.keith-hair.net
begin:vcard
fn:Keith H
n:H;Keith
email;internet:[EMAIL PROTECTED]
x-mozilla-html:TRUE
url:http://www.keith-hair.com
version:2.1
end:vcard