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

Re: Disk-based XPath Processing

  • From: Uche Ogbuji <uche@o...>
  • To: Tatu Saloranta <cowtowncoder@y...>
  • Date: Sun, 01 Oct 2006 21:25:02 -0600

re disk
Tatu Saloranta wrote:
> Alas, although there is quite a bit of interest, I
> haven't seen solutions where streaming parsers could
> use some suitable subset of XPath to match sub-trees
> (suitable meaning that only some axes were supported,
> parent/grandparent, attribute, children, but not
> sibling). I have been hoping to investigate doing this
> myself in near future, since it would seem to simplify
> some streaming-oriented tasks (like only building
> small sub-trees, or one sub-tree at a time from a
> bigger document).

What you describe in the above para is pretty much exactly what Amara's
pushbind and pushdom allow, and the trimxml tool that John L. Clark
mentions, exposes this approach on the command line.  They use a subset
of XSLT patterns (which are  themselves a subset of XPath, as defined
int he XSLT 1.0 spec) to drive a streamable operation that only loads
into memory one subtree at a time from a larget document.  I think it
does still need a little baking, but I've been successful using it for
some pretty heavy-duty work.


-- 
Uche Ogbuji                               Fourthought, Inc.
http://uche.ogbuji.net                    http://fourthought.com
http://copia.ogbuji.net                   http://4Suite.org
Articles: http://uche.ogbuji.net/tech/publications/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.