Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. // example xml record
  2.  
  3. <Records>
  4. - <Record>
  5. <Last>TwoFrame</Last>
  6. <First>TwoFrame</First>
  7. </Record>
  8.  
  9. // how can i access nodes by name with my responseXML object?
  10.  
  11. var xmldoc = req.responseXML;
  12. var results = xmldoc.getElementsByTagName('Record')[0];
  13. alert(results[5].childNodes[0].nodeValue);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement