• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAXB - Weird Problem in unmarshling

 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic