[Fwd: Re: Expat exception handling]

Paul Prescod paul at prescod.net
Wed Feb 2 19:11:20 GMT 2000


Here's how James Clark suggests to handle errors in handlers:

"The user data argument passed to XML_Parse should point to a structure
that includes a quitParsing flag.  If you want to stop parsing the
handler should set the quitParsing flag, and then set all handlers to
null. Callers of XML_Parse should check the quitParsing flag on return." 

In other words, we can't really stop the parse but we can stop
responding to the parse. This avoids the platform/thread complexities of
setjmp/longjmp.

--
Paul Prescod  - ISOGEN Consulting Engineer speaking for himself
"Ivory towers are no longer in order. We need ivory
networks. Today, sitting quietly and thinking is the
world´s greatest generator of wealth and prosperity."
- http://www.bespoke.org/viridian/print.asp?t=140

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions and unsubscriptions
are  now ***CLOSED*** in preparation for list transfer to OASIS.





More information about the Xml-dev mailing list