By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,870 Members | 1,212 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,870 IT Pros & Developers. It's quick & easy.

Xerces SAX2 Parser termination

P: 1
I have an application that uses the Xerces SAX2 parser. My problem is that if I encounter a particular error in one of my callback methods I would like to terminate the parsing.

Of course, the callback methods are void functions so there's no way to return any info to the parser via the function return. Therefore, I believe that there must be some function I can call to tell the parser to effectively flush the rest of the XML file.

Does anyone know of a way to do that?

Thanks, Allan.
Jun 11 '07 #1
Share this Question
Share on Google+
1 Reply


Dököll
Expert 100+
P: 2,364
I have an application that uses the Xerces SAX2 parser. My problem is that if I encounter a particular error in one of my callback methods I would like to terminate the parsing.

Of course, the callback methods are void functions so there's no way to return any info to the parser via the function return. Therefore, I believe that there must be some function I can call to tell the parser to effectively flush the rest of the XML file.

Does anyone know of a way to do that?

Thanks, Allan.
Greetings, Allan!

Here are my Google search results:

http://www.google.com/search?hl=en&s...m&q=XML+Parser

Just started doing some reading about it. Would you like to give it a go?

In a bit!
Jul 4 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.