Ciao a tutti,

tramite un dynamic text voglio mostrare dei dati che stanno in un file xml.
Quello che voglio è pubblicare una colonna di nomi utenti e una colonna con numeri.

Mi sapete dire come fare? ho preso un tutorial online dove l'as è:

Codice PHP:
function loadXML(loaded) {
 if (
loaded) { 
_root.inventor this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue
_root.comments this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue
_root.name_txt.text _root.inventor
_root.comment_txt.text _root.comments

} else {
trace("file not loaded!");
}
}

xmlData = new XML(); 
xmlData.ignoreWhite true
xmlData.onLoad loadXML
xmlData.load("inventors.xml"); 
mentre l'xml è:
codice:
<?xml version="1.0"?>  
<inventors> 	
<person> 		
<name>manu 15</name> 		
<comment>Inventor of many things such as the incandescent lightbulb.</comment>
</person> 

<person> 		
<name>antonio 15</name>
<comment>Invented the mouse at the Stanford Research Institute</comment>
</person>
</inventors>
Ma cosi facendo visualizzo sempre e solo il primo nome.


come posso fare?

grazie