aspose file tools*
The moose likes XML and Related Technologies and the fly likes JAXB adding attribute to collection element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB adding attribute to collection element" Watch "JAXB adding attribute to collection element" New topic
Author

JAXB adding attribute to collection element

matej spac
Greenhorn

Joined: Apr 21, 2011
Posts: 28
Hello,
I have a class which looks like this:

I want to add an attribute "someAttr" to "list" element to reach following xml:.

Is this possible in some way?


|OCPJP 6|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB adding attribute to collection element