Hi Hans,
just throw an exception that you define, and that you are catching in
the same scope of the parse() call.
Something like this:
try {
reader->parse();
} catch(CMyException& e) {
// ok, the XML is valid but not for my purpose
}
Hope this helps,
Alberto
At 08.36 07/10/2005 +0200, Hans Stoessel wrote:
Hi
I am parsing a XML document using SAX2XMLReader. It could be, that there is
an
error in one of my actions during parsing, e.g in endElement.
- How can I stop the parsing process?
- Have I to throw an exception? If yes how and what kind of execption? Code
sample?
Thanks for the help
Regards
Hans
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]