Microsoft XML 2.5 SDK


 

IXMLHttpRequest::get_responseXML Method

[This is preliminary documentation and subject to change.]

Represents the response entity body as parsed by the Microsoft XML DOM parser.

Visual Basic Syntax

Set objDispatch = oXMLHttpRequest.responseXML

C/C++ Syntax

HRESULT get_responseXML(

    IDispatch **ppXmlDom);

Parameters

ppXmlDom

[out]
Response entity body as an XML document.

C/C++ Return Value

Returns S_OK if successful, or E_PENDING if the data is unavailable.

Remarks

For security reasons, the parser validation features are always turned off to prevent MSXML from attempting to download a document type definition (DTD) or XML-Data definition.

If the response entity body is not valid XML, this method returns the IXMLDOMDocument object that was parsed so that you can access the error object. This property does not return the error object IXMLDOMParseError itself, but that object is accessible from the IXMLDOMDocument object.

If the response was generated by an ASP page, and the MIME type was not correctly set to "text/xml" using the ASP method Response.ContentType, responseXML will be empty.

See Also

responseBody, responseStream, responseText