This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB - Weird Problem in unmarshling

 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic