how to create customized marshalled output from JAXB?

一笑奈何 提交于 2020-01-16 11:47:28

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!