Avg. Rating 3.4

Problem

I am looking for a way to use <![CDATA[ tags withing XML nodes which are created using Actionscript.

Solution

Does anyone know of a solution for this?

Detailed explanation

I am looking for a way to use <![CDATA[ tags withing XML nodes which are created using Actionscript.

For example:

private function addNewXMLNode():void {
    var createXMLFromButton:XML =
    <newNode><![CDATA[ {getTextInput} ]]></newNode>;
    myXMLList = myXMLList.appendChild(createXMLFromButton);

}.

This causes an error. I have also tried concatanting strings but it converts the < and > symbols to &lt; and &gt;

I am trying to create a small CMS which edits an XML file and over writes it completely using PHP but this has been a problem for so long im almost ready to give up.

Report abuse

Related recipes