PDA

View Full Version : XML to Textbox.



titter
June 29th, 2003, 11:46 AM
I was wondering how I could get different nodes of a xml file into seperate textboxes?

Such as my xml file looks like:


<?xml version="1.0"?>
<Schedule>
<Upcoming>
<UMatch1>
<Opponent>Clan</Opponent>
<Map>de_dust2</Map>
<Date>Thurs. 9pm</Date>
</UMatch1>

<UMatch2>
<Opponent>Clan</Opponent>
<Map>de_dust2</Map>
<Date>Thurs. 9pm</Date/
</UMatch2>
</Upcoming>

<Previous>
<Match1>
<Opponent>Clan</Opponent>
<Map>de_dust2</Map>
<Score>Thurs. 9pm</Score>
</Match1>

<Match2>
<Opponent>Clan</Opponent>
<Map>de_dust2</Map>
<Score>Thurs. 9pm</Score>
</Match2>

<Match3>
<Opponent>Clan</Opponent>
<Map>de_dust2</Map>
<Score>Thurs. 9pm</Score>
</Match3>
</Previous>
</Schedule>

How would I load each match info into new textboxes? I also want it to be all different textboxes, so basically 3 per line of info. So 15 different boxes in total. D:

lostinbeta
June 29th, 2003, 01:55 PM
These are the tutorials I used to learn XML in Flash...

http://search.atomz.com/search/?sp-advanced=1&sp-q=XML&B1=search&sp-a=00040c2f-sp00000000&sp-w-control=1;