Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Represents the parsed response entity body.

Script Syntax

Copy Code
var objDispatch = oXMLHttpRequest.responseXML;

Remarks

Script Parameters

None.

Script Return Value

Object. Response entity body as an XML document.

C/C++ Syntax

Copy Code
HRESULT get_responseXML(
  Idispatch** 
ppBody
);

Remarks

Parameters

ppBody

[out, retval] Response entity body as an XML document.

C/C++ Return Values

S_OK

Value returned if successful.

E_PENDING

Value returned if the data is unavailable.

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

For security reasons, the parser validation features are always turned off to prevent the Microsoft® XML Parser (MSXML) from attempting to download a document type definition or XML-data definition. If the response entity body is not valid XML, this property returns DOMDocumentthat was parsed so that you can access the error. This property does not return IXMLDOMParseErroritself, but it is accessible from DOMDocument.

If the response was generated by an Active Server Pages (ASP) page and the Multipurpose Internet Mail Extension (MIME) type was not correctly set to text/xml using the ASP method Response.ContentType, responseXMLwill be empty.

The property is read-only, and applies to the following interface:

IXMLHTTPRequest

See Also