Click to return to the XML (Extensible Markup Language) home page    
XMLDOMNotation Object     XMLDOMProcessingInstructi...     XML XMLDOM Objects    
Web Workshop  |  XML (Extensible Markup Language)

XMLDOMParseError Object


The XMLDOMParseError object returns detailed information about the last parse error, including the error number, line number, character position, and a text description.

Members

Example

The following example attempts to load an XML document. It then tests the XMLDOMParseError object's errorCode property to see if an error has occurred:

Dim xmlDoc

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


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.