0

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.

Shivan Dragon
  • 15,004
  • 9
  • 62
  • 103
sasi krishna
  • 87
  • 4
  • 10
  • Look at [XML parsing of a variable string in JavaScript](http://stackoverflow.com/questions/649614/xml-parsing-of-a-variable-string-in-javascript/8412989#8412989) – cubanacan Sep 10 '12 at 11:20

2 Answers2

1

Take look on this thread: Parse XML from XMLHttpRequest

I think it contains information you need.

Community
  • 1
  • 1
AlexR
  • 114,158
  • 16
  • 130
  • 208
1

You could do this using jQuery.parseXML

cubanacan
  • 644
  • 1
  • 9
  • 26