ahmad_n80 Posted November 25, 2008 Share Posted November 25, 2008 hii want to know when we use xml in Ajax ?orwhat's the use of xml in ajax ?i read the ajax education in w3schools but i can't understand where xml use. THANKS Link to comment Share on other sites More sharing options...
boen_robot Posted November 25, 2008 Share Posted November 25, 2008 XML is one of the formats used in the response from XMLHttpRequest.If you haven't figured that out yet, AJAX is really just JavaScript sending an HTTP request with the XMLHttpRequest object and receiving a response.The real "magic" behind it is that if the response is XML, you can use the responseXML property to traverse the response in the same way you traverse your (X)HTML document in JavaScript. Any other format can only be read in the responseText property as a plain string (which may or may not be useful). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.