• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.

Thanks
reply
    Bookmark Topic Watch Topic
  • New Topic