Jason <[EMAIL PROTECTED]> wrote on 10/25/2005 12:17:32 PM: > Thanks Michael, > > One other question (to you or anyone else). The > project I'm converting uses the progressive parse in > conjunction with the SAX interfaces. Frankly, the > advantage of the progressive parse isn't clear to me. > I poked around the xercesc documentation which > explains the use of this part of the API but not the > use case it satisfies. So, what are the advantages to > using the progressive parse in conjunction with the > sax callbacks versus just using the standard parser > apis? Thanks in advance.
It gives your application more control over the parsing process. The common approach to stopping a SAX parser is to throw a SAXException from one of your handlers, but once you've done that you've terminated the parser. With an XMLPullParsingConfiguration you can stop parsing whenever you want, do something else and then resume parsing if you choose. You can process several documents in the same thread using this approach. > -jason Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
