Sorry, this should have gone to a different thread ;O)
As fot this thread, people already found different techniques to avoid
the namespace declarations, but I understand it's cumbersome.
I'll try to find out how we could improve NamespacePrefixMapper to allow
rejection of namespace declaration as well.
MartinG
Martin Grebac wrote:
> Would you please file an issue against JAXB and attach the schema
> you're using best with a simple testcase?
> Thanks,
> MartinG
>
> Colin Fleming wrote:
>> Hi all,
>>
>> The problem that we had with the prefix mapper was that it doesn't
>> allow you to remove the namespaces that JAXB declares automatically
>> (i.e. the ones statically known by the JAXBContext). For performance
>> (and convenience) reasons we create a single JAXBContext that's aware
>> of many different document types, and JAXB ends up adding about 60
>> namespace declarations to each document. The prefix mapper doesn't
>> help with that.
>>
>> Cheers,
>> Colin
>>
>
--
Martin Grebac, http://blogs.sun.com/mgrebac
Web Technologies & Standards
Sun Microsystems Czech
ICQ: 93478885