Returns an XMLDOMParseError object that contains information about the last parsing error.
objXMLDOMParseError = oXMLDOMDocument.parseError
Object. The property is read-only. It returns an XMLDOMParseError object. The returned object is always a valid object.
This member is an extension of the W3C DOM.
The following VBScript example uses the document's parseError property to create an XMLDOMParseError object. It then tests the error and displays a message if one occurs:
Dim xmlDoc Dim myErr Set xmlDoc = CreateObject("Msxml2.DOMDocument") xmlDoc.async = False xmlDoc.load("c:\books.xml") Set myErr = xmlDoc.parseError If (myErr.errorCode <> 0) Then MsgBox ("You have error " & myErr.reason) End If
Applies To: DOMDocument Object