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 the root class 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 the root class" Watch "JAXB the root class" New topic
Author

JAXB the root class

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Hi,
I have an XML to represent a list of Servers. It is like this:




At the moment to marshall / unmarshall this I have two classes. One for the Server:



Which is fine. However, I also have one for the list of Servers. I need this class to marshall and unmarshall a list of servers. I want to get rid of this class but keep the XML the same. Any ideas how I can do this?



 
jQuery in Action, 2nd edition
 
subject: JAXB the root class
 
Similar Threads
Passing Information Between Web Applications (Alternative to Web Services)
Marshalling XML with Spring (How to handle referenced classes)
Append child + Xstream
Inserting into table with Hibernate question
web services performance question