xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
- To: Mike Colbert <mbcolbert AT yahoo.com>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] XOM and Large Files
- Date: Wed, 26 Jul 2006 07:56:06 -0700
A streaming NodeFactory enables efficient filtering and can avoid the need to build a main memory tree, which is particularly useful for large documents. The XOM Tutorial has a section on such streaming: http://www.xom.nu/tutorial.xhtml#d0e1424
A NodeFactory is a user defined high level callback fed by the Builder, conceptually similar to a SAX ContentHandler.
Wolfgang.
On Jul 26, 2006, at 7:44 AM, Mike Colbert wrote:
What's the most efficient way to process large (in this case up to 1Gb) files
with XOM?
Right now, I'm just using an InputStreamReader on a FileInputStream to read the
file contents into a String and then using Builder.build (StringReader) to
create the XOM object, then traversing it sequentially.
It works, and it was easy, but I want to speed things up.
Platform is:
Linux flxdev01 2.6.9-22.0.2.ELsmp #1 SMP Thu Jan 5 17:11:56 EST 2006 x86_64
x86_64 x86_64 GNU/Linux
java version "1.5.0_04"
Thanks,
Mike
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
[XOM-interest] XOM and Large Files,
Mike Colbert, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Wolfgang Hoschek, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Mike Colbert, 07/26/2006
- Re: [XOM-interest] XOM and Large Files, Wolfgang Hoschek, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Mike Colbert, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
John Cowan, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Mike Colbert, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Elliotte Harold, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Mike Colbert, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Michael Kay, 07/26/2006
- Re: [XOM-interest] XOM and Large Files, Mike Colbert, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Mike Colbert, 07/26/2006
- Re: [XOM-interest] XOM and Large Files, Mike Colbert, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Michael Kay, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Mike Colbert, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Elliotte Harold, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Mike Colbert, 07/26/2006
-
Re: [XOM-interest] XOM and Large Files,
Wolfgang Hoschek, 07/26/2006
Archive powered by MHonArc 2.6.24.