Ilja,

we were talking about wrapping cdata tags around the value in the mxml
editor but you brought up my next question.

How would one add CDATA tags around the value when assigning a value to an
xml node? Is this the correct way to do it?

myXML.myHTMLContent = "<![CDATA[" + myHTMLValue + "]]";

Or is there a property that i can call on that node to make any value added
to it wrap its content in cdata tags and unwrap the return value when
getting the value out of it?

myXML.myHTMLContent.containsCDATA = true;


On 3/29/07, Ilja Panin <[EMAIL PROTECTED]> wrote:

  In MXML files compiler cut all CDATA tags in XML.
To resolve this problem use AS class
Sample:

AS:
package
{
public class MyCDATAXML
{
     public static var testSource : XML = <node> <![CDATA[<b>bold</b>
text]]>
</node>
}
}

MXML :
.....
<mx:TextArea htmlText="{MyCDATAXML.testSource"/>
....


Reply via email to