This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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