View Single Post
Old 11-07-2012, 09:37 PM   PM User | #5
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,452
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Quote:
Originally Posted by sunfighter View Post
This will read an xml file for you and place it into a div. I know that's not what you want but it's a start. "xmlhttp.responseText" is the returned file and you can now do with it as you like.
Why would responseText be referenced when the info being returned is XML - surely processing it from responseXML where you can then use DOM calls to access the individual elements within it would be the far easier option.


for example you could obtain all the ISBN values using

xmlhttp.responseXML.getElementsByTagName('isbn')
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote