• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Parse XML file using XmlHttpRequest object

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am new to Java script and AJAX. I am getting a response of xml file (not xml tags or elements) and I have to parse that file and have to display using AJAX - UI. So, I need to parse that xml file (response) in java script. If any one can suggest me how to do it will be helpful.

Thanks in advance.
 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look here:

XmlHttpRequest and XML

It seems that you get the responseXML, which is a DOM object (Document), from the XmlHttpRequest, then call that object's methods (see the org.w3c.dom.Document API) such as getElementsByTagName(), etc. to parse the XML.

I hope this helps!


--James
 
reply
    Bookmark Topic Watch Topic
  • New Topic