Advertisement
Guest User

jQueryXMLParsing

a guest
Aug 2nd, 2012
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.47 KB | None | 0 0
  1.     function processXml(xml) {
  2.                 $(xml).find("tour").each(function() {
  3.                     $("#header").append($(this).attr("title"));
  4.                     //$("#header").append($(this).attr("title"));
  5.  
  6.                 });
  7.                 $(xml).find("stop").each(function() {
  8.                     $("#stop").append($(this).find("title").text() + "<br/>");
  9.                 });
  10.                 $(xml).find("hotel").each(function() {
  11.                     //$("#stop").append($(this).find("title").text()+"<br/>");
  12.                     $("#hotel").append($(this).attr("name") + "<br/>");
  13.  
  14.                 });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement