Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] does XOM offer any performance advantages for me?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] does XOM offer any performance advantages for me?
  • Date: Tue, 29 Mar 2005 11:18:20 -0500

Wolfgang Hoschek wrote:

I'm not sure I fully understand the use case, but the update part of it seems to be trickier because XOM has no streaming output equivalent to the NodeFactory that would allow to individually write one subtree at a time (rather than write entire documents). You could write a workaround with a bit of string printing or use some SAX like library...

You could also use a subclass of Serializer to expose the write(Element) method as public, and then write one element at a time. You'd still need to use string printing to output the root element start-tag and end-tag. Bit of a hack, but should work for some use cases.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page