Loop through xml Jquery


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //Load xml file
  2. $.get("xmlfile.xml", {}, function (xml) {
  3. //Loop through each node
  4. $('node', xml).each(function (i) {
  5. //Do something
  6. });
  7. }):

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.