JAXB lists namespaces in root element (-> each element)

妖精的绣舞 提交于 2019-12-02 01:19:55

问题


By default, jaxb 2 lists all (all possible required) namespaces in root element during marshalling:

Is there a way to describe namespace in each element instead of root element ?:

It also solves the problem of "unnecessary namespaces", which is also important in my case. Any suggestions appreciated.

来源:https://stackoverflow.com/questions/2385405/jaxb-lists-namespaces-in-root-element-each-element

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