# CDATA and xml.sendAndLoad

**URL:** <https://forum.kirupa.com/t/cdata-and-xml-sendandload/104392>\
**Category:** Uncategorized\
**Created:** [March 15, 2004, 8:09pm UTC](https://forum.kirupa.com/t/cdata-and-xml-sendandload/104392 "2004-03-15T20:09:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flashmatazz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/flashmatazz/32/140_2.png) [@Flashmatazz](https://forum.kirupa.com/u/Flashmatazz)\
**Post date:** [March 15, 2004, 8:09pm UTC](https://forum.kirupa.com/t/cdata-and-xml-sendandload/104392/1 "2004-03-15T20:09:02Z")

</div>

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:

```auto

my_XML.firstChild.lastChild.lastChild.appendChild(my_XML.createTextNode(myMessage));

```

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:

```auto

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

```

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

Please help 🙂
