Microsoft XML SDK 2.6 - XML Reference

IXMLDOMParseError::reason Method

IXMLDOMParseError::get_reason Method

Explains the reason for the error.

Visual Basic Syntax

strValue = oXMLDOMParseError.reason

C/C++ Syntax

HRESULT get_reason(
    BSTR *reasonString);

Parameters

reasonString [out]
Reason for the error. This displays a description of the error, the line number, character position, and source text of the error. Validation errors also include the URL of the schema and the node within the schema that corresponds to the error.

C/C++ Return Values

S_OK
Value returned if successful.
S_FALSE
Value returned if no error occurred.

See Also

IXMLDOMParseError Interface