By default, jaxb 2 lists all (all possible required) namespaces in root element during marshalling: Is there a way to describe namespace in each element instead of root ele开发者_开发问答ment ?:
I am processing XML documents with JAXB 2.0 where I need information(in my example \'id\') mapped to Java objects and run some business logic with. Everything works fine here.
I\'m implementing a homebrew subprotocol of XMPP, and i\'m using combination of StAX and JAXB for parsing/marshalling mesages. An开发者_开发知识库d when I marshall a message I end up with loads of unn