Hello,
Im getting XML data, which I can not modify the structure of it, from a website and print it with the fallowing code:
function fnGetFM() {
var iSpacing = 22;
var iFm = 0;
var iFmtotal = fm_data.firstChild.childNodes.length;
for (i=0; i<iFmtotal; i++) {
var oFm = mc_stage.mc_about.mc_fm.attachMovie("type3", "fm"+iFm, iFm);
var sFmartist = fm_data.firstChild.childNodes*.childNodes[0];
var sFmname = fm_data.firstChild.childNodes*.childNodes[1];
var sFmdate = fm_data.firstChild.childNodes*.childNodes[4];
oFm.type3artist.text = sFmartist;
oFm.type3song.text = sFmname;
oFm.type3date.text = sFmdate;
oFm._x = 0;
oFm._y = iFm*iSpacing;
iFm++;
}
}
The Problem is when I Print the data, they come insde the XML tags. Like:
[COLOR=#0000ff]<[/COLOR][COLOR=#990000]name[/COLOR][COLOR=#0000ff]>[/COLOR]Everything Will Be Alright[COLOR=#0000ff]</[/COLOR][COLOR=#990000]name[/COLOR][COLOR=#0000ff]>[/COLOR] for the name field.
I want to get rid of the tags, how can I do that ?
Thanks