sasi krishna
sasi krishna

Reputation: 87

parsing xml file in javascript

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.

Upvotes: 0

Views: 89

Answers (2)

cubanacan
cubanacan

Reputation: 654

You could do this using jQuery.parseXML

Upvotes: 1

AlexR
AlexR

Reputation: 115328

Take look on this thread: Parse XML from XMLHttpRequest

I think it contains information you need.

Upvotes: 1

Related Questions