Hi,
I have a beginner’s XML question. I use this XML code:
<news>
<kop1><![CDATA[Concert Kasabian afgelast >>>]]></kop1>
</news>
I was being told that using <![CDATA[ ]]> would allow me to type anything in between, even the ‘>’ symbol. But helais, I still get to see ‘>’ when I publish.
My as:[AS]
var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(ok) {
if (ok) {
var field = NK1MC.NK1;
field.multiline = true;
field.wordWrap = true;
field.autoSize = true;
field.selectable = false;
field.text = this.firstChild.childNodes[0].firstChild;
field.setTextFormat(NK1fmt);
}
};
my_xml.load(txt);[/AS]
(by the way, how should I wrap XML code on this forum?)
Could someone explain to me why the CDATA code doesn’t work for me?
thank you,
Jerryj.