Compiling multiple XSDs
We are working with a company that communicates via XML and thus they have provided to us a lot of XSD files (50 or so). We have decided to use JAXB and thus have a problem when we are trying to compile them.
The following is our ANT Task:
<xjc destdir="src" package="com.company.xml" >
<arg value="-npv" />
<arg value="-extension"/>
<schema dir="XML" includes="*.xsd"/>
</xjc>
Unfortunately, we are unable to compile them because we get errors stating that certain elements are already in use. Use a class customization to resolve this conflict. The XSDs were provided by the company so we cannot make any drastic changes and thus decide to compile them all at once. We want to also have only one package.
Is this possible to have only one package and compile them all together without causing this error? How would we go about this?
Or, the only solution is to compile each XSD file in its own package which would ultimately avoid the issue however it would create a lot of redundant objects. Please advise.

