--- In [email protected], grimmwerks <[EMAIL PROTECTED]> wrote:
>
> Ok I've got this xml setup:
>
> <item>
> <info>
> <circleText><![CDATA[]]></circleText>
> <workingText><![CDATA[]]></workingText>
> <needText><![CDATA[]]></needText></info>
> <circle type="work" x="200" y="150" percent="25"/>
> <circle type="home" x="80" y="120" percent="20"/>
> <circle type="community" x="150" y="130" percent="30"/>
> <circle type="self" x="300" y="80" percent="25"/>
> </item>
>
> I can get / set everything fine - I can even set
xml.info.circleText =
> "new text" but I lose the <![CDATA[ wrapping.
>
> I've tried to do
>
> xml.info.circleText = "<![CDATA[" + "new text" + "]]>" but that
throws
> an error.
>
> Any suggestions?
>
try something like this:
var newText:String = 'new text'
xml.info.circleText=<![CDATA[{newText}]]>
HTH;
Amy