Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











PROPERTY:  Document::parseError

Document.parseError

The parseError property is read-only and returns an XMLDOMParseError object containing information about the last parse error.

In the following example the parseError property is used to create an XMLDOMParseError object after loading the XML file. Then the errorCode property is used to determine whether an error has occurred, and if so, a warning message is displayed.

Code (JavaScript):
xml_doc = new ActiveXObject("Microsoft.XMLDOM");
xml_doc.async = false;
xml_doc.load("albums.xml");
err = xml_doc.parseError;
if (err.errorCode != 0) alert("Error: " + err.reason);

This property is a Microsoft extension to the W3C DOM.



 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information