次の方法で共有


validateOnParse Property (Compact 2013)

3/26/2014

Indicates whether the parser should validate this document.

Syntax

boolValue = oXMLDOMDocument.validateOnParse;
objXMLDOMDocument.validateOnParse = boolValue;
HRESULT get_validateOnParse(
  VARIANT_BOOL* isValidating
);
HRESULT put_validateOnParse(
  VARIANT_BOOL isValidating
);

Parameters

Script

None.

C/C++

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

Return Value

Script

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

C/C++

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

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.

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML DOM Properties