Compartilhar via


responseXML Property (IXMLHTTPRequest) (Compact 2013)

3/26/2014

Represents the parsed response entity body.

Syntax

var objDispatch = oXMLHttpRequest.responseXML;
HRESULT get_responseXML(  Idispatch** ppBody);

Parameters

Script

None.

C/C++

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

Return Value

Script

Object. Response entity body as an XML document.

C/C++

  • S_OK
    Value returned if successful.
  • E_PENDING
    Value returned if the data is unavailable.

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 DOMDocument that was parsed so that you can access the error. This property does not return IXMLDOMParseError itself, 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, responseXML will be empty.

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

IXMLHTTPRequest

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML HTTP Properties
DOMDocument
IXMLDOMParseError
responseStream Property (IXMLHTTPRequest)
responseText Property (IXMLHTTPRequest)