I'm trying to figure out what bits I need to plug together to marshal a JAXB POJO to a XOM document, and vice versa.
The JAXB Marshaller
interface's marshal methods take various targets, such as Result
, but none of them have a XOM adapter. Irritatingly, the XOM API does have a XOMResult
implementation, but it's package protected, and only used internally.
Is there some other way I can marshal to/from XOM without resorting to String or byte buffers?