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.
subject: How to remove unused namespace in XML generated from JAXB marshalling ?