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

Re: half-baked parsers vs binary XML

  • From: Gabe Beged-Dov <begeddov@j...>
  • To: David Megginson <david@m...>
  • Date: Sat, 27 Mar 1999 18:37:45 -0800

Re: half-baked parsers vs binary XML
David Megginson wrote:

> No, you'll probably find that there's no speed difference at all (why
> would there be?).

There would be a little speed difference from not having to check for defaulted attributes.
The half-baked parser might also be able to directly point to the xml input without having to
copy it, i.e. use start-length pointers for the tags and attrs.  This would be more
cumbersome if there was less of a one to one correspondence between the raw xml and what you
got after expansion and defaulting.

> There will be a small size difference, but it will
> be less exciting than you think -- the code to detect the prologue and
> load the module will make up much of the difference.

Detecting the prologue and loading an alternate module takes a few lines of Java code.
Prologue processing, entity expansion  and attribute defaulting take up a little more than
that in the parsers that I've looked at.

> doing the
> well-formedness checks for legal characters can take up a lot of code,
> but you're supposed to do that anyway (I cheated with AElfred).

I'm not sure I understand. Could you elaborate on how you cheated :-?

Thanks,

Gabe Beged-Dov
www.jfinity.com



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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-2011 All Rights Reserved.