JAXB marshall object with null date field to blank xml element

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sai krishna

    JAXB marshall object with null date field to blank xml element

    Hi All, Here is the issue

    java object has date fields that are null, I need to marshal an xml
    using jaxb, but jaxb doesn't allow null values when it marshal's.
    Is there any way to tell jaxb that whenever a particular date field is
    null put a blank in xml?
Working...