Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] StaX/DOM/SAX-to-XOM bridge

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Tatu Saloranta <cowtowncoder AT yahoo.com>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] StaX/DOM/SAX-to-XOM bridge
  • Date: Tue, 14 Sep 2010 10:07:09 -0700 (PDT)

--- On Tue, 9/14/10, Dmitry Katsubo <dma_k AT mail.ru> wrote:

> I want to benefit from quick StaX/DOM/SAX -to- XOM document
> creation,

One alternative would be to adapt existing DOMWrappingWriter from Woodstox
(or rather its Stax2 API ref impl, under
src/java/org/codehaus/stax2/ri/dom/DOMWrappingWriter.java), which implements
Stax XMLStreamWriter to construct DOM document (or fragment).
Creating equivalent for XOM should be relatively straight-forward.

Also, Nux project (http://acs.lbl.gov/software/nux/) has many xom/stax
integration pieces so if you haven't yet looked at it, I would suggest doing
so.

-+ Tatu +-








Archive powered by MHonArc 2.6.24.

Top of Page