CDATA and xml.sendAndLoad

I’m trying to improve on my flash-xml guestbook by having the input text create links.
Therefore I figured I’d need to add a CDATA node to the original xml object before sending it to the php script that writes it to the xml-file.

I have something like this:


where myMessage is the text that the user wrote. What would I do when I want to make this into a cdata section?
I tried this:

myMessage = "<![CDATA[" + myMessage + "]]>";

which doesn’t work because in the xml-file the < gets replaced by <

Please help :slight_smile: