[XOM-interest] Writing large XML documents
Eric Wang
jemroc at gmail.com
Mon Dec 17 22:45:42 EST 2007
No, it isn't necessary for me to build a tree model. Forgive my
ignorance, but I can't find any mention of the SAX or Stax writers in
the XOM documentation. Does this require an additional library?
On Dec 17, 2007 10:36 PM, Tatu Saloranta <cowtowncoder at yahoo.com> wrote:
> --- Eric Wang <jemroc at gmail.com> wrote:
>
> > Hi, I am attempting to write an XML file larger than
> > available memory.
> > Looking over the tutorial, the section describing
> > the toXML() method
> > states "However, since this builds the entire
> > document in memory, it
> > can be problematic for large documents and less
> > efficient than using a
> > Serializer, which can stream the document."
>
> Is it necessary for you to build an intermediate tree
> model? If not, you could just use SAX or Stax writers
> directly to produce xml content of unlimited length,
> with minimal buffering.
>
> -+ Tatu +-
>
>
>
> ____________________________________________________________________________________
> Never miss a thing. Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>
More information about the XOM-interest
mailing list