aspose file tools*
The moose likes Web Services and the fly likes JAXB - Weird Problem in unmarshling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAXB - Weird Problem in unmarshling" Watch "JAXB - Weird Problem in unmarshling" New topic
Author

JAXB - Weird Problem in unmarshling

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
I am receiving a valid XML from server. lets say

**XSD**


**XML**




Could someone guide me what would be possible reason? I am unable to debugg from where should i start.
the **nestedChild** is optional. so whenever JAXB parse the xml, it parse it in a way that if my xml doesn't have nestedChild, it shows 1 (empty object). if it has one nestedChild it shows 2, one valid and the other is empty. the transformation of valid child is okay, and obviously when the system try to convert empty object it throws exception ..




its jaxb v 1.3

The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB - Weird Problem in unmarshling