Jackson-dataformat-xml uses Stax API for input/output, and does not
have similar input/output integration with DOM.
However, there are probably Stax-based tools for making
XMLStreamReader read from DOM Document or Element, and XMLStreamWriter
"write" a DOM document. In fact I think Woodstox might have something
like that; and perhaps StaxMate.
Alternative simple brute force solution is to write DOM as
byte[]/String, then feed that to Jackson via readValue().
Similarly for Jackson writing XML, parse that as DOM document.
On first approach... I think `javax.xml.transform.dom.DOMSource`
(
https://docs.oracle.com/javase/8/docs/api/javax/xml/transform/dom/DOMSource.html)
can be given to `XMLInputFactory` as `StaxSource`, and this is how you
can do cleanly. Woodstox does support it.
There is similar `DOMResult` which may work as well.
-+ Tatu +-