Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Disk-based XPath Processing

From: Uche Ogbuji <uche@------.--->
To: Tatu Saloranta <cowtowncoder@-----.--->
Date: 10/2/2006 3:25:00 AM
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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent