View Single Post
  #13 (permalink)  
Old 11-05-2008, 07:51 PM
LeadMagnet's Avatar
LeadMagnet LeadMagnet is offline
Mr. Tambourine Man
 
Join Date: Jun 2007
Location: Ireland
Gender: Male
Posts: 1,381
Default

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.
Reply With Quote