위 처럼 xml을 만들고
var xml_file:String = "XmlFile.xml";
var xml:XML = new XML();
xml.onLoad = function()
{
nodes = this.firstChild.childNodes;
total = nodes.length;
for( i = 0; i < total; i++)
{
trace(nodes[i].childNodes[0].childNodes[0].nodeValue);
}
}
xml.load( xml_file );
xml.ignoreWhite = true;
이렇게 만들어서 프리뷰 테스트를 하면 아웃풋 창에
title1 과 title2 가 출력되는 것을 볼 수 있다.