• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xstream library problem

 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem. I want to to save the JavaBean object to XML file:


Everything is OK to that point. The output file is created correctly and the aliases from annotations are set.

But, when I want to create the object from the same XML file:


I have the following exception:


Any ideas? I do not know what is wrong. Everything looks fine in the code.
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A close look at the generated could help. Let me guess: When parametrising the XML element names, one of the names you choose was "Parametry symulacji"? As white spaces are not allowed within XML identifiers the parser treats symulacji as a second identifier, which must be an attribute name at that position, but is not followed by a value.

Xstream should not allow faulty identifiers.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Hauke.
That was the key!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic