Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to abort MS SAX2

Status
Not open for further replies.

chiph

Programmer
Jun 9, 1999
9,878
US
If I detect a problem during the character processing event in SAX2 (say, if I find data that I don't like), how do I tell SAX2 to stop dead and not raise any more events?

I could just set a module-level boolean (an "ignore" flag), but then SAX would just continue, consuming CPU resources in a futile attempt to finish the XML file.

Can I just call the fatalerror event myself?

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top