Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Writing to CDATA nodes...

Writing to CDATA nodes...

2004-02-19       - By Isaac Rivera

 Back
Reply:     1     2  

The XML parser in Flash can read cdata nodes which is great. But flash doesn 't really have a CDATA node type which is a pain.

If I read an xml: <string > <![CDATA[ <p >Some styled text here. </p >] > </string >

I can correctly get the value of the <string > node as " <p >Some styled text here. </p > ". Great.

Now if I modify the string to say: " <p >Some other styled text here. </p > " and write it back to the node <string >, the CDATA wrapper is gone.

If I try and add it manually: " <![CDATA[ " + " <p >Some other styled text here. </p > " + "]] > ", then it gets escaped. unescaping it doesn 't do the trick.

The problem is that it becomes part of the string and not a wrapper anymore.

Any suggestions?

Isaac Rivera

=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104736
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)