Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Indicates whether the parser should validate this document.

Script Syntax

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

Copy Code
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 isValidatingis 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.