XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Error and Fatal Error

Joe Fawcett wrote:
> Do I take it that most mainstream parsers then treat any error as fatal?

I don't know about "mainstream parsers" but at least the GNU XML parser, Ælfred, and Xerces treat (correctly) recoverable errors as recoverable, and fatal errors as fatal. For an idea about what it means to be a recoverable or a fatal error, read the org.xml.sax.ErrorHandler interface documentation.

This means in practice that a SAX handler will receive precisely one fatalError callback whereupon the parser will halt, whereas it may receive multiple error callbacks and the parser will continue to the end of the document (or a fatal error).


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS