I would like to find a way to load select option values from a XML file.
For example <option value="XXXXXX">XXXXXX</option> where the XXXXXX value is the <TITLE>XXXXXX</TITLE> of the following XML:
<?xml version="1.0" encoding="utf-8"?>
<CATEGORIES>
<CD id="1">
<TITLE>NEVER MIND THE BOLLOCKS</TITLE>
<BAND>SEX PISTOLS</BAND>
<YEAR>1977</YEAR>
</CD>
<CD id="2">
<TITLE>NEVERMIND</TITLE>
<BAND>NIRVANA</BAND>
<YEAR>1991</YEAR>
</CD>
</CATEGORIES>
Try this(haven’t tested this):
EDIT: Updated the post to reflect the XML posted by OP.