This property is used to specify whether the XML parser should validate (true
) this document against document type definition (DTD), schema, or schema cache on loading.
domObj.setProperty(strProp, vBool); vBool = domObj.getProperty(strProp);
domObj.setProperty(strProp, vBool) vBool = domObj.getProperty(strProp)
HRESULT setProperty(BSTR strProp, VARIANT vBool); HRESULT getProperty(BSTr strProp, VARIANT* vBool);
true/false
. The default value is true
.The following rules apply for the validation:
ValidateOnParse
is also a first-level property on an XML DOM with the same effect. Thus, the following JScript code fragments accomplish the same:
dom.setProperty("ValidateOnParse", true);
and
dom.validateOnParse = true;
The second-level properties of ValidateOnParse
, ResolveExternals
, UseInlineSchema
, and NonValidatingSchemaUse
all deal with validation of an XML document. Collectively, they influence the behavior of the parser in different ways. For more information see the Remarks section of the UseInlineSchema property.
Component: MSXML 5.0 and later
Interface: IXMLDOMDocument2
Method: setProperty | getProperty
ResolveExternals | UseInlineSchema