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

RE: DOM or SAX: Sense and Sensibility


difference dom and sax
On Wed, 14 Nov 2001, Michael Kay wrote:

> > Ah. I'm handling 10M documents in a typical transform in this
> > case. That makes a significant difference in where I spend my time.
> > The raw transform currently takes less than 1 second normally
>
> Would I be right in thinking that your transform is actually selecting
> a small part of the 10M input document, and extracting that part to
> the result document?

Yep. Specifically, I'm building web (HTML) pages. Typical output size in
the single to tens of K range.

> In that situation, where you run many of these extractions on the same
> in-memory document, the savings from not building the tree each time
> should certainly be substantial. The moral is that one should avoid
> phrases like "a typical transform"!

Probably. As with any general purpose tool, different people are going to
find dramatically different ways to use it.

> Incidentally, this use case demonstrates the high degree of overlap between
> the usage scenarios for XSLT and XQuery.

I'll need to think about that. I am still fighting to overcome my
prejudice against things that look like SQL. :)

-- 
Benjamin Franz

 "Code as if whoever maintains your code is a violent
  psychopath who knows where you live."
                    -- Nancy Lebovitz, the button lady


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.