Could
you through an exception SAXParseException from your handler. Prior to
throwing the exception set a flag in the handler that the catch checks. If
the flag is set to PrematureExit instead of PareError then you will have
effectively exited the parse() method prematurely and within your control.
The Handler owns the exit logic.
I
presume you want to exit when you have satisfied some criteria; found a
particular element and it's data. The method described above would work
fine.
Hope
this helps,
Ken
-----Original Message-----
From: Williamson, Siehnai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 2:46 PM
To: '[EMAIL PROTECTED]'
Subject: Stopping in the middle of a parse
Hi,
How do you prematurely end parsing, using the parse() method of the SAX parser, without using the progressive parsing methods like parseNext(). Can you?
Siehnai Williamson
DocuCorp International, Inc.
