Click to return to the XML (Extensible Markup Language) home page    
XMLDOMDocument ontransfor...     XMLDOMDocument preserveWh...     XMLDOMDocument Object    
Web Workshop  |  XML (Extensible Markup Language)

parseError Property


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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMDocument


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.