Class DOMWrappingWriter

java.lang.Object
org.codehaus.stax2.ri.dom.DOMWrappingWriter
All Implemented Interfaces:
XMLStreamWriter, TypedXMLStreamWriter, Validatable, XMLStreamWriter2

public abstract class DOMWrappingWriter extends Object implements XMLStreamWriter2
This is an adapter class that partially implements XMLStreamWriter as a facade on top of a DOM document or Node, allowing one to basically construct DOM trees via Stax API. It is meant to serve as basis for a full implementation.

Note that the implementation is only to be used with javax.xml.transform.dom.DOMResult. It can however be used for both full documents, and single element root fragments, depending on what node is passed as the argument.

One more implementation note: much code is identical to one used by Stax2WriterAdapter. Alas it is hard to reuse it without cut'n pasting.

Since:
3.0