trace(xml.firstChild.childNodes[0].attributes.name); trace(xml.firstChild.childNodes[1].attributes.txt);