This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xStream doesn't work correct with list and attributes

 
Gynnad Paullussen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to make some objects of a XML file. But i'm doing something wrong, this is the method where I put in the xml file:


this is the xml file:


And this are the classes that i'm using:

Competition class:

The event class:

Someone has any idee what I'm doing wrong?

This is what I'm get when I do the reverse way:

With this piece of code:


 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems you haven't configured XStream to process annotations. Try to look into XStream's docs and/or tutorials, I remember it is mentioned somewhere there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic