469,357 Members | 1,860 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,357 developers. It's quick & easy.

Xerces SAX2 Parser termination

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
1 1412
Dököll
2,364 Expert 2GB
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.

Similar topics

4 posts views Thread by M Arora | last post: by
2 posts views Thread by delphin.lecucq | last post: by
1 post views Thread by Nuno | last post: by
2 posts views Thread by Boris Kolpackov | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.