# =( xml problemo or my retardness problemo?

**URL:** https://forum.kirupa.com/t/xml-problemo-or-my-retardness-problemo/193126
**Category:** flash
**Created:** [July 4, 2006, 3:45pm UTC](https://forum.kirupa.com/t/xml-problemo-or-my-retardness-problemo/193126 "2006-07-04T15:45:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![orro](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@orro](https://forum.kirupa.com/u/orro)
#### Post date: [July 4, 2006, 3:45pm UTC](https://forum.kirupa.com/t/xml-problemo-or-my-retardness-problemo/193126/1 "2006-07-04T15:45:35Z")

</div>

i need a -----------\>:nurse:

hello plz

im so tierd with this realy.  
i was following a tutorial that shows how to display xml txt in flash

so groovie i thought to myself  
and tried to change somthing  
goes like that

this is the xml file highly “simple” supposeably!

\<?xml version=“1.0”?\>

\<inventors\>  
\<person\>  
\<name\>xxThomas Edison\</name\>  
\<style\>Inventor of many things such as the incandescent lightbulb.\</comment\>  
\</person\>  
\<person\>  
\<name\>boocha\</name\>  
\<style\>a sweeter kind of dogo\</comment\>  
\</person\>  
\</inventors\>

this is the FLASH ac command:

function loadXML(loaded) {  
if (loaded) {  
\_root.inventors = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;  
\_root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;  
\_root.inventors2 = this.lastChild.childNodes[0].childNodes[0].lastChild.nodeValue;  
\_root.comments2 = this.lastChild.childNodes[0].childNodes[1].lastChild.nodeValue;  
name\_txt.text = \_root.inventors;  
comment\_txt.text = \_root.comments;  
name2\_txt.text = \_root.inventors2;  
comment2\_txt.text = \_root.comments2;  
//trace(not\_set\_yet);  
} else {  
trace(“file not loaded!”);  
}  
}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“inventors.xml”);

i made 4 txt fields on the flash stage :  
comment\_txt  
comment2\_txt  
name\_txt  
name2\_txt

the xml info is showing only the first node and tottaly ignoring the other node-  
\_root.inventors2 = this.lastChild.childNodes[0].childNodes[0].lastChild.nodeValue;  
\_root.comments2 = this.lastChild.childNodes[0].childNodes[1].lastChild.nodeValue;

this section isnt working somhow…

i did somting wrong didnt i ???

:chinaman:

i bet T’is my fault!!

bwaAA!!  
:stare:
