File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XMLDecoder

 
jakes vandenberg
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have encoded a java bean with the XMLEncoder. For empty strings and zero value attributes, the XMLEncoder do not generate XML to eliminate redundancy.
When I try to decode the xml back to the java bean I get a "java.lang.reflect.InvocationTargetException" :shocked: , which I assume it is trying to do the setters on the bean for attributes that does not exist in the XML. Has anybody worked with this and how did you get by the problem??

Thanks
Jakes
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic