07 - AJAX ResponseXML Example

Let’s create a new example to work with the property responseXML. First of all, we can create an XML document in the Ajax folder, with the response we want to receive from the server upon our xmlHttpRequest, I will call this document: AjaxXMLResponse.xml.

Once we click on the Click Me! button, the content from the XML file that we request (AjaxXMLResponse.xml) should be displayed. In our example we are only displaying each record’s title, but you could display all the elements if you want.