This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to remove unused namespace in XML generated from JAXB marshalling ?  RSS feed

rs veera
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

My spring applicationcontext.xml contains marshaller bean as below.

<oxm:jaxb2-marshaller id="marshaller" contextPath="com.example1.xsd:com.example2.xsd" />

com.example1.xsd and com.example2.xsd contains two different namespace xsd's not related to each other. When marshalling JAXB object present in path com.example1.xsd. Am getting an xml contains namesapce used in com.example2.xsd also which is never used in the output xml.

How to avoid those unwanted namspace present in XML.

Please help on this.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!