Create CDATA tags between XML nodes using AS

Create CDATA tags between XML nodes using AS

Problem Summary

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

Solution Summary

Does anyone know of a solution for this?

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.

 

 


Share

0 条评论

留下评论