Parse an xml file using jQuery


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



Copy this code and paste it in your HTML
  1. function parseXml(xml) {
  2. //find every Tutorial and print the author
  3. $(xml).find("Tutorial").each(function()
  4. {
  5. $("#output").append($(this).attr("author") + "");
  6. });
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.