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

Re: Piccolo Java SAX parser and others in the wild?


sax parser problems
At 10:27 AM -0800 2/22/04, Dennis Sosnoski wrote:

>Can you mention what the main flaws are for Piccolo? I've seen a 
>number of companies using it, and from what I remember it's also the 
>basis of the parser used by BEA's NetBeans (now part of Apache, so 
>that may be changing). Many people would consider BEA's main XML 
>infrastructure project to be serious work. :-)

Come here me talk at XML Europe in a couple of months and I'll give 
you the complete rundown on a whole bunch of SAX parsers and exactly 
where each one screws up. But several problems with Piccolo include:

1. Inability to recognize ignorable white space.
2. Use of non-standard ENUMERATION attribute type instead of NMTOKEN
3. Failure to handle document type declarations that only contain a 
root element name
4. Frequent throwing of ArrayIndexOutOfBoundsExceptions when 
encountering various kinds of well-formedness errors
5. It treats <name/> and <name></name> differently. For <name></name> 
it calls characters() between startElement and endElement and sets 
length to 0.

Arguably 1 and 5 are acceptable. I'd love to hear peoples' opinions 
about 5. Is this legitimate?

Those are just the problems I happen to know of off the top of my 
head. As I said, I'll have a more complete list in Amsterdam.

>Piccolo was considerably faster than the Xerces version in use at 
>the time it first came out, but the Xerces team seems to have put 
>more of a focus on performance since then. Recent versions of Xerces 
>look to be about on a par with Piccolo performance.

Xerces has problems of its own, rather large ones in fact. Details in 
Amsterdam.

-- 

   Elliotte Rusty Harold
   elharo@m...
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
   http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA

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.