问题
I don't want to use XML file created by JAXB marshaller, can I customize it, so that i would give a preferrable format to marshal objects?
回答1:
You can take JAXB's XML output and process it in a way you like, to achieve an alternative output.
XSLT, DOM, or something else...
XML is perfect to be further transformed!
回答2:
jaxb is related to XML ... if you need to customize the xml then you can use the Jaxb annotations http://java.sun.com/javaee/5/docs/api/javax/xml/bind/annotation/package-summary.html
来源:https://stackoverflow.com/questions/1047836/how-to-create-customized-marshalled-output-from-jaxb