posted 16 years ago
HI All,
I have a xml in the following structure, i would like to build a combo box out of this. this xml is coming from the back end.
<?xml version="1.0" ?>
<divzones>
<divzonecode>code1</divzonecode>
<divzonename>zone1</divzonename>
</divzones>
<divzones>
<divzonecode>code2</divzonecode>
<divzonename>zone2</divzonename>
</divzones>
<divzones>
<divzonecode>code3</divzonecode>
<divzonename>zone3</divzonename>
</divzones>
i would like to convert this to following based on the xml received
<select>
<option value="code1">zone1</option>
<option value="code2">zone2</option>
<option value="code3">zone3</option>
</select>
i tired using getelementbytagname, but this will not take duplicate tags
KIndly help me in solving this
thanks in advance
rudresh