The compiler is still recognizing the cdata tags.  Try:

xml.info.circleText = "<![CDATA[" + "new text" + "]" + "]>" 

 

I do not know if literal xml would work, or would have the same issue
with the cdata tags:

xml.info.circleText = <![CDATA[{new text}]]>;  //give it a try

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Thursday, May 08, 2008 12:43 PM
To: [email protected]
Subject: [flexcoders] on the fly XML string change and keep CDATA
wraps....

 

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?

 

Reply via email to