Is it possible to transform a POJO instance into its XML representation without storing it to DB and load it back again in DOM4J mode (and from XML to POJO)?
Is it possible to transform a POJO instance into its XML representation without storing
Share
I have not used this yet, but DOM4J appears to have some JAXB integration that could be used to convert your POJOs to XML (DOM4J):
UPDATE
DOM4J also offers a
DocumentResultclass that implementsjavax.xml.transform.Result. You can use JAXB to marshal to this class and then manipulate the resulting DOM4JDocumentobject: