This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes XMLDecoder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XMLDecoder" Watch "XMLDecoder" New topic
Author

XMLDecoder

jakes vandenberg
Greenhorn

Joined: Nov 05, 2004
Posts: 14
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XMLDecoder