• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Default element value is not populating in JAXB Objects

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have one element in XSD which has default value. When I generate JAXB objects using that XSD, that default value is not being assigned to the getMyElementValue() ..

Here is the sample element in my XSD




and I was expecting getSORID() value will be "07" when I don't have any value for my "SORID" element in my XML file.


Is some thing wrong with my XJC compilor or is any other reason?

I really appreciate your thoughts and help on this.


Thanks,
Ugender Rekulampally
 
reply
    Bookmark Topic Watch Topic
  • New Topic