Partager via


responseXML Property (IXMLHTTPRequest) (Windows Embedded CE 6.0)

1/6/2010

Represents the parsed response entity body.

Script Syntax

var objDispatch = oXMLHttpRequest.responseXML;

Remarks

Ee502104.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee502104.collapse(en-US,WinEmbedded.60).gifScript Return Value

Object. Response entity body as an XML document.

Ee502104.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get_responseXML(
  Idispatch** ppBody
);

Remarks

Ee502104.collapse(en-US,WinEmbedded.60).gifParameters

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

Ee502104.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

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

Ee502104.collapse(en-US,WinEmbedded.60).gifRequirements

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 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

See Also

Reference

XML HTTP Properties
DOMDocument
IXMLDOMParseError

Concepts

responseStream Property (IXMLHTTPRequest)
responseText Property (IXMLHTTPRequest)

Other Resources