wood burning stoves 2.0*
The moose likes Java in General and the fly likes xStream doesn't work correct with list and attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "xStream doesn Watch "xStream doesn New topic
Author

xStream doesn't work correct with list and attributes

Gynnad Paullussen
Ranch Hand

Joined: Jan 26, 2011
Posts: 49
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

Joined: Aug 22, 2010
Posts: 3606
    
  60

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xStream doesn't work correct with list and attributes
 
Similar Threads
One to Many relationship Error. Please guide.
Match XML data value with the mysql database
Orphan delete doesn't seem to be working properly
SQLGrammarException: could not get next sequence value
cewolfexample (cewolf-1.1-ulf)