Click to return to the XML (Extensible Markup Language) home page    
XMLDOMParseError filepos ...     XMLDOMParseError Object    
Web Workshop  |  XML (Extensible Markup Language)

errorCode Property


Contains the error code of the last parse error.

Syntax

lValue = oXMLDOMParseError.errorCode

Remarks

Long integer. The property is read-only. It returns the error code in decimal.

Example

The following example attempts to load an XML document. If it encounters a parse error, it displays the error code:

Dim xmlDoc

Set xmlDoc = CreateObject("microsoft.xmldom")
xmlDoc.async = False
xmlDoc.load("c:\books.xml")
If xmlDoc.parseError.errorcode <> 0 Then
   MsgBox xmlDoc.parseError.errorCode
Else
  MsgBox xmlDoc.documentElement.xml
End If

Applies To

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


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.