Microsoft XML 2.5 SDK


 

parseError Property

[This is preliminary documentation and subject to change.]

Returns an XMLDOMParseError object that contains information about the last parsing error.

Syntax

objXMLDOMParseError = oXMLDOMDocument.parseError

Remarks

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.

Example

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("microsoft.xmldom")
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

XMLDOMDocument