[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: More on Parsing Performance


java date parser
> The most obvious alternative would have been to require all callbacks
> to return a boolean value, which would be a giant programming pain for
> the majority of applications that process the complete XML document.

I am not sure how easy this is in Java, but in Delphi/C++ one would
use a var parameter, pre-set to the most likely value, so that
in the normal case the programmer would not do anything about it.

In Java you might use a status object, whose state is preset?

> We could also have set up a method on the parser itself, but in Java
> that is much more kludgey than using an exception.

In Expat (SAX-like, but not SAX) we are going to add a status to the
callback signatures. This is for the purpose of adding a Pull API, 
while still keeping the Push API. In Pull mode the callbacks will act
as "filters" (status = Continue, Stop, Error, ...), in Push mode one
can use them directly.

Regards,

Karl




PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.