gremlin
04-30-2006, 09:03 AM
Hi, i was just wondering if i could get some help on a music player i have been writing. I need to have 3 select boxes (this is the same idea as the browse menu in itunes btw) which display Artist/Album/Song Title. All the song info is from an xml file i have written and i was hoping to be able to extract certain pieces of info from it depending on what of the other fields have been selected. I also need to be able to get th song file name to change the player current track. My xml code is as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<CATALOG>
<ARTIST>
<NAME>Blink 182</NAME>
<ALBUM>Enema of the State</ALBUM>
<SONG SRC="adams-song.mp3">Adam's Song</SONG>
</ARTIST>
<ARTIST>
<NAME>Blink 182</NAME>
<ALBUM>Enema of the State</ALBUM>
<SONG SRC="aliens-exist.mp3">Aliens Exist</SONG>
</ARTIST>
<ARTIST>
<NAME>Metallica</NAME>
<ALBUM>Master of Puppets</ALBUM>
<SONG SRC="master-of-puppets.mp3">Master of Puppets</SONG>
</ARTIST>
<ARTIST>
<NAME>Offspring</NAME>
<ALBUM>Greatest Hits</ALBUM>
<SONG SRC="head-around-you.mp3">(Can't Get My) Head Around You</SONG>
</ARTIST>
</CATALOG>
I've tried but AJAX really confuses me so could you please not pressume I understand all the syntax. Thanks.
<?xml version="1.0" encoding="ISO-8859-1"?>
<CATALOG>
<ARTIST>
<NAME>Blink 182</NAME>
<ALBUM>Enema of the State</ALBUM>
<SONG SRC="adams-song.mp3">Adam's Song</SONG>
</ARTIST>
<ARTIST>
<NAME>Blink 182</NAME>
<ALBUM>Enema of the State</ALBUM>
<SONG SRC="aliens-exist.mp3">Aliens Exist</SONG>
</ARTIST>
<ARTIST>
<NAME>Metallica</NAME>
<ALBUM>Master of Puppets</ALBUM>
<SONG SRC="master-of-puppets.mp3">Master of Puppets</SONG>
</ARTIST>
<ARTIST>
<NAME>Offspring</NAME>
<ALBUM>Greatest Hits</ALBUM>
<SONG SRC="head-around-you.mp3">(Can't Get My) Head Around You</SONG>
</ARTIST>
</CATALOG>
I've tried but AJAX really confuses me so could you please not pressume I understand all the syntax. Thanks.