responseXML property

Retrieves the response body as an XML Document Object Model (DOM) object.


HRESULT value = object.get_responseXML(** xmlDocument);

Property values

Type: Object

The response as an XML document.

Standards information


Internet Explorer 10 in Windows 8 updates the IHTMLXMLHttpRequest::responseXML property from XMLHttpRequest to return a native XML document by default. This change applies to Internet Explorer 10 Standards and Quirks document modes, making them interoperable with other modern browsers. Compatibility document modes for Windows Internet Explorer 5, 7, 8, and 9 are unchanged. For more info, see XMLHttpRequest responseXML in Internet Explorer 10.

Use QueryInterface to convert the returned pointer p into IXMLDOMDocument.

IHTMLXMLHttpRequest::responseXML was introduced in Windows Internet Explorer 7.

Using responseXML in Windows apps using JavaScript

In Windows apps using JavaScript, this property returns a DOMParser object instead of an IXMLDOMDocument object.

See also