Indicates whether the parser should validate this document.
boolValue = oXMLDOMDocument.validateOnParse; objXMLDOMDocument.validateOnParse = boolValue;
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.5.0");
xmlDoc.async = false;
xmlDoc.validateOnParse = true;
xmlDoc.load("books.xml");
if (xmlDoc.parseError.errorCode <> 0) {
var myErr = xmlDoc.parseError;
alert("You have error " + myErr.reason);
}
boolValue = oXMLDOMDocument.validateOnParse objXMLDOMDocument.validateOnParse = boolValue
Dim xmlDoc As New Msxml2.DOMDocument50
xmlDoc.async = False
xmlDoc.validateOnParse = True
xmlDoc.Load "books.xml"
If (xmlDoc.parseError.errorCode <> 0) Then
Dim myErr
Set myErr = xmlDoc.parseError
MsgBox("You have error " & myErr.reason)
End If
HRESULT get_validateOnParse(
VARIANT_BOOL *isValidating);
HRESULT put_validateOnParse(
VARIANT_BOOL isValidating);
get_validateOnParse only)isValidating parameter is Null.Boolean. The property is read/write. If True, it validates during parsing. If False, it parses only for well-formed XML. The default is True.
This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button
in the upper-left corner of the page.
Applies to: DOMDocument