Here's a general question about XmlSax.
How do you recover from error, or more exactly how do you stop processing when an exception is raised?
More specifically, if an exception is raised in _StartElement or _EndElement procedures, you can try/catch the exceptions, but it does not stop the processing all together and the two subs will be called until the end of the stream.
It's obviously no good to wrap the call to parser.Parse in a try/catch block as the exception won't be relayed.
So, to reiterate, how do you stop the processing when an exception is raised?
Thank you.
How do you recover from error, or more exactly how do you stop processing when an exception is raised?
More specifically, if an exception is raised in _StartElement or _EndElement procedures, you can try/catch the exceptions, but it does not stop the processing all together and the two subs will be called until the end of the stream.
It's obviously no good to wrap the call to parser.Parse in a try/catch block as the exception won't be relayed.
So, to reiterate, how do you stop the processing when an exception is raised?
Thank you.
Last edited: