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 Windows Internet Explorer 7.
For properties and methods supported by oXMLDocument , refer to the documentation of IXMLDOMDocument/DOMDocument Members .
responseXML was introduced in Windows 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);
Standards Information
This property is defined in The XMLHttpRequest Object (W3C Working Draft) .
Applies To
XMLHttpRequest
See Also
responseBody, responseText
Experience Silverlight enabled quickstart tutorials, video training, showcases & more.
By clicking "Click to Install" you accept the Silverlight License Agreement .Silverlight updates automatically, learn more .