# XML behaving badly...(heeeelp)

**URL:** <https://forum.kirupa.com/t/xml-behaving-badly-heeeelp/283799>\
**Category:** flash\
**Created:** [March 11, 2009, 8:47am UTC](https://forum.kirupa.com/t/xml-behaving-badly-heeeelp/283799 "2009-03-11T08:47:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drawsoup](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/drawsoup/32/80_2.png) [@Drawsoup](https://forum.kirupa.com/u/Drawsoup)\
**Post date:** [March 11, 2009, 8:47am UTC](https://forum.kirupa.com/t/xml-behaving-badly-heeeelp/283799/1 "2009-03-11T08:47:16Z")

</div>

Hey there!  
I have this strange problem. I want my Dynamic textfield to display test from an XML-file.  
It loads the XML, but for some reason my dynamic textfield shows the nodenames, as well as the node text. Here’s a snippet of my code:

```auto

var myXML:XML = new XML();
myXML.ignoreWhite=true;
myXML.onLoad=teamSort;
myXML.load("table.xml");
function teamSort(success:Boolean):Void {
	if (success){
		m1.placement_1.text=myXML.firstChild.firstChild.firstChild;
		m1.k_1.text=myXML.firstChild.firstChild.childNodes[3];

```

and here’s a snippet of the XML

```auto

<?xml version="1.0"?>
<table>
  <team id="1">
    <position>1</position>
    <name>F.C. København</name>
    <logo>FCK</logo>
    <played>18</played>
    <won>12</won>
    <draw>4</draw>
    <lost>2</lost>
    <goalplus>33</goalplus>
    <goalminus>12</goalminus>
    <points>40</points>
  </team>
</table>

```

Any ideas would be great!

cheers  
//V\ I K Z
