ok, very small problem, can’t seem to think straight, could really do with some help from someone…
i’m using this code to output to a dynamic text box-
function loadXML(loaded) {
if (loaded) {
xmlParent = this.firstChild;
person = xmlParent.childNodes;
for (var i = 0; i<person.length; i++) {
output_txt.text += person*+"
";
}
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
everything works how i want it to, as in lists the xml file how i want, but it’s showing the node name as well as it’s content
eg.
lastName, firstName
i just need it to show
lastName, firstName
example for the XML file is this:
<level>
<person>lastName, firstName</person>
<person>lastName2, firstName2</person>
<person>lastName3, firstName3</person>
<person>lastName4, firstName4</person>
</level>
can anyone please help me out with this?