在javascript中解析xml文件

AM developing a auto completion or suggestion box using AJAX and servlets . My problem is how to parse the XML response in java script to show it in a div tag.My xml response is like contains one parent tag RESULTS , it contains number of children tags called RESULT.

How to get result values in java script variables.

Take look on this thread: Parse XML from XMLHttpRequest

I think it contains information you need.

You could do this using jQuery.parseXML