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

Re: SAX and the characters function

  • From: Jeff Rafter <jeffrafter@e...>
  • To: xml-dev@l...
  • Date: Sun, 15 Jul 2001 00:47:02 -0700

sax characters function
Thanks all, for the answers!

Some serious digging later... I found some very early comments about this
issue (Mainly between Tim Bray and Dave Megginson)

http://www.lists.ic.ac.uk/hypermail/xml-dev/xml-dev-Dec-1997/0184.html
http://www.lists.ic.ac.uk/hypermail/xml-dev/xml-dev-Dec-1997/0188.html
http://www.lists.ic.ac.uk/hypermail/xml-dev/xml-dev-Dec-1997/0190.html

[[a snippet of 0190...

> > > data(XmlParser, String)=20
> > I feel that the 2nd argument should not be a String. It is a recipe
> > for disastrous inefficiency if the processor has to cook up a=20
> > java.lang.String object for every little chunk of text. =20
>
>The overhead isn't that bad with =C6lfred because I coalesce my data
>into the largest chunks possible before allocating the String. I
>think that returning a char[] array would be confusing for users
that's a fair point; the correct solution per design principles
is to have a Text class that could give you a String if you
asked it; since many applications will ignore the comment of many
elements, it seems vital not to have an interface that makes
lazy evaluation impossible. So I think you have to go for either
the char[] trick or another class.
]]

That's the best I could find for now but it should do.  I also got some
great offlist answers.  Thanks for the direction in where to start looking
Dave... Hard to believe that SAX is coming up on 4 years old at the end of
this year...

Jeff Rafter
Defined Systems
http://www.defined.net
XML Development and Developer Web Hosting





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.