Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM and Large Files

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Michael Kay" <mike AT saxonica.com>
  • To: "'Mike Colbert'" <mbcolbert AT yahoo.com>, "'John Cowan'" <cowan AT ccil.org>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XOM and Large Files
  • Date: Wed, 26 Jul 2006 16:59:24 +0100

> Thanks, John. Good catch, unfortunately in this specific
> case the files don't have root elements, so I need to write
> in my own before I pass the contents to XOM. (And I guess
> the moral of that story is don't keep XML in files without
> root elements. It is what it is.)
>
> Still, for future reference, I'm curious if any other options
> are available.

Give the parser an input file like this:

<!DOCTYPE orders [
<!ENTITY e SYSTEM "data.xml">
]>
<doc>&e;</doc>

where data.xml is your big file without the wrapper element.

Michael Kay
http://www.saxonica.com/





Archive powered by MHonArc 2.6.24.

Top of Page