Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
responseXML Property (ServerXMLHTTP/IServerXMLHTTPRequest)
Collapse the table of content
Expand the table of content

responseXML Property (ServerXMLHTTP/IServerXMLHTTPRequest)

Represents the response entity body as parsed by Microsoft® XML Core Services (MSXML).

var objDispatch = oServerXMLHttpRequest.responseXML;


var xmlServerHttp = new ActiveXObject("Msxml2.ServerXMLHTTP.3.0");
xmlServerHttp.open("GET", "http://localhost/books.xml", false);

Set objDispatch = oServerXMLHttpRequest.responseXML

HRESULT get_responseXML(IDispatch** ppXmlDom);


ppXmlDom[out, retval]

The response entity body as an XML document.

C/C++ Return Values


The value returned if successful.


The value returned if the data is unavailable.

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 DOMDocument object that was parsed so that you can access the error object. This property does not return the error object IXMLDOMParseError itself. That object is accessible from the DOMDocument object.

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" or "application/xml" using the ASP method Response.ContentType, responseXML will be empty.

Implemented in:

MSXML 3.0, MSXML 6.0

© 2015 Microsoft