code_junkie

How to parse XML in JavaScript from Google

Nov 12th, 2011
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. var xmlDoc = this.req.responseXML.documentElement;
  2. var tStatus = xmlDoc.getElementsByTagName("status")[0].firstChild.data;
  3. var tOtherURL = xmlDoc.getElementsByTagName("otherurl")[0].firstChild.data;
  4. var tRows = xmlDoc.getElementsByTagName("rows")[0].firstChild.data;
Add Comment
Please, Sign In to add comment