Xml schedule

[Hi Salimai,
From what I understood from your explaination, you wanted data from your xml to be displayed in two text boxes time_txt and band_txt respectively.
I tried to do something so that you could trace the value from the xml childnodes. I changed your xml and added <root>…</root>. Its better to write that way.


<?xml version="1.0"?>
<root>
      <stage>
	<timeslot>
		<time>9:30</time>
		<band>Band name 1</band>
	</timeslot>
	<timeslot>
		<time>10:15</time>
		<band>Band name 2</band>
	</timeslot>
      </stage>
      <stage>
	<timeslot>
		<time>9:30</time>
		<band>Band name 1</band>
	</timeslot>
	<timeslot>
		<time>10:15</time>
		<band>Band name 2</band>
	</timeslot>
      </stage>
</root>

I would suggest you to use FOR loop within your xml childnodes to trace the values. Looks like you are familiar with xml.

[AS]
//xml part
xmlData = new XML ();
xmlData.ignoreWhite = true;
xmlData.onLoad = function (success)
{
if (success)
{
loadXML (xmlData);
//trace(xmlData);
}
else
{
trace (“XML Loading failed!”);
}
};
xmlData.load (“schedule.xml”);
function loadXML (xml_doc)
{
//trace(xml_doc);
//trace(xml_doc.firstChild.childNodes.length);
for (var i = 0; i < xml_doc.firstChild.childNodes.length; i++)
{
trace (xml_doc.firstChild.childNodes*.firstChild.childNodes[0].firstChild.nodeValue);
}

}
[/AS]

I hope that will work. If not let me know. If you would explain in more details what exactly you wanted to accomplish, it would be easier to help you.