Retrieves the response body as an XML Document Object Model (DOM) object.
Syntax
[ oXMLDocument = ] XMLHttpRequest.responseXML
Possible Values
oXMLDocument Object that receives the response body.The property is read-only. The property has no default value.
The property is read-only. The property has no default value.
Remarks
For properties and methods supported by oXMLDocument , refer to the documentation of IXMLDOMDocument/DOMDocument Members . responseXML was introduced in Internet Explorer 7.
For properties and methods supported by oXMLDocument , refer to the documentation of IXMLDOMDocument/DOMDocument Members .
responseXML was introduced in Internet Explorer 7.
Example
The following example uses the XML DOM to display the response body: var oReq = new XMLHttpRequest(); oReq.open("GET", "http://localhost/books.xml", false); oReq.send(); alert(oReq.responseXML.xml);
The following example uses the XML DOM to display the response body:
var oReq = new XMLHttpRequest(); oReq.open("GET", "http://localhost/books.xml", false); oReq.send(); alert(oReq.responseXML.xml);
Applies To
XMLHttpRequest
See Also
responseBody, responseText