wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes XML string parsing in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "XML string parsing in javascript" Watch "XML string parsing in javascript" New topic
Author

XML string parsing in javascript

N.Senthil Kumar
Ranch Hand

Joined: Jul 07, 2009
Posts: 50
Hi,


I really cant find what i did wrong with this.

the response xml String is like this.







and in Javascript :





from xmlDoc i tried to parse the xml,

Say for eg : alert(xmlDoc.getElementsByTagName("Response").length); returns 0.


please help me to parse this response XML String in Javascript.

thanks in advance.

N.Senthil Kumar
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You have a question about Javascript? We just happen to have a forum about Javascript. Moving...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XML string parsing in javascript
 
Similar Threads
Problem using Microsoft.XMLDOM, getting status as 'undefined'
Java script code for mozilla fire fox Not able to Load the xml from servlet
Can't get parsing XML to work in JavaScript
XMLHtmlRequest return Undefine
Problem in Parsing XML String