var loader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
loader.addEventListener(Event.COMPLETE, loadXML);
loader.load(new URLRequest("xml url"));
function ParseXML(xmlName:XML):void {
var xmlListName:XMLList = xmlName.nodeName;
for each (var xmlElement:XML in xmlListName) {
trace(xmlElement.attribute("attributeName"));
}
}
function loadXML(e:Event):void {
xmlData = new XML(e.target.data);
ParseXML(xmlData);
}