# Small XML output problem

**URL:** <https://forum.kirupa.com/t/small-xml-output-problem/270455>\
**Category:** Uncategorized\
**Created:** [September 10, 2008, 7:40am UTC](https://forum.kirupa.com/t/small-xml-output-problem/270455 "2008-09-10T07:40:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monsterchild](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@monsterchild](https://forum.kirupa.com/u/monsterchild)\
**Post date:** [September 10, 2008, 7:40am UTC](https://forum.kirupa.com/t/small-xml-output-problem/270455/1 "2008-09-10T07:40:22Z")

</div>

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-

```auto
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:

```auto
<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?
