This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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|
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JAXB adding attribute to collection element
 
Similar Threads
problem in Tiles2 intrigation with jsf when we keep jsp in folder location
Why I can't retrieve records stored in a XMLFile correctly?
Recursive program help
XML One liners for the exam....
at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.getServletMapping