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

Re: XML parsing performance

  • From: "Takuki Kamiya" <kamiya@r...>
  • To: "David Brownell" <david-b@p...>, "Vilya Harvey" <vilya@n...>
  • Date: Thu, 28 Oct 1999 13:41:23 +0900

xml parsing attributes performance
David Brownell wrote:
> Vilya Harvey wrote:
> > 
> > >  2) Using attribute's instead of nodes.
> > 
> > This is probably a bit of a red herring, although it may have some (fairly
> > negligible) impact depending on the parser you use.
> Depends on the DTD you use, actually.  I think attributes are more
> expensive to parse; they certainly need normalization and defaulting,
> which elements don't use.  Parsers fill out an auxiliary data structure
> and then scan it ...
> Don't get me wrong, this shouldn't be a design consideration, but I
> do believe that there's a minor price to pay in _all_ parsers.

Many parsers process "attribute XML without DTD" files in about 10 percent
less time compared to the time for "element XML without DTD" in my experience.
(On the other hand, file size ratio was about 1 : 1.3)

I found that there are a few parsers inclusing Microsoft's whose performance
improves significantly (about as half the time) for attribute XML files. I
do not believe it is coincidence that those parsers appear not to normalize
attribute values at all.

Another caveat is that some parsers' performance degrades a lot for attribute
XML files. I guess those parsers have not been tuned for the heavy use of

= Takuki Kamiya  Phone: (045)476-4586 Fax: (045)476-4749   =
= FUJITSU LIMITED (COINS:7128-4217 NIFTY:HHA01731)         =

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 unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.
First Name
Last Name
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.