Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB the root class

 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic