Change this:
var x=xmlDoc.getElementsByTagName("oil");
To this:
var x=xmlDoc.getElementsByTagName("producers");
Otherwise your for loop contains only 1 iteration (only 1 oil tag)
__________________
Subtlety is my middle name... and first and last in case you didn't get the point.
|