Share via


validateOnParse Property

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Indicates whether the parser should validate this document.

Script Syntax

            boolValue = oXMLDOMDocument.validateOnParse;
objXMLDOMDocument.validateOnParse = boolValue;

Remarks

Script Parameters

None.

Script Return Value

Boolean. If True, it validates during parsing. If False, it parses only for well-formed XML. The default is True.

C/C++ Syntax

HRESULT get_validateOnParse(
  VARIANT_BOOL* isValidating
);
HRESULT put_validateOnParse(
  VARIANT_BOOL isValidating
);

Remarks

C/C++ Parameters

  • isValidating
    [out, retval][in] If True, validates during parsing. If False, parses only for well-formed XML.

C/C++ Return Values

  • S_OK
    Value returned if successful.
  • E_INVALIDARG (for get_validateOnParse only)
    Value returned if isValidating is Null.

Requirements

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

General Remarks

This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

This property is read/write, and applies to the following interface:

DOMDocument.