JAXB marshall object with null date field to blank xml element

Discussion in 'XML' started by sai krishna, Oct 24, 2008.

  1. sai krishna

    sai krishna Guest

    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?
     
    sai krishna, Oct 24, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Norberto Eichstaedt
    Replies:
    0
    Views:
    8,272
    Norberto Eichstaedt
    Jan 17, 2004
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,756
    Michael Borgwardt
    May 30, 2004
  3. Replies:
    5
    Views:
    30,014
    Mike Schilling
    Mar 29, 2006
  4. Jiho Han
    Replies:
    13
    Views:
    876
    John Saunders
    Jul 29, 2006
  5. HANM
    Replies:
    2
    Views:
    1,493
    Joseph Kesselman
    Jan 29, 2008
  6. George2

    marshall interface needed?

    George2, Apr 5, 2008, in forum: C Programming
    Replies:
    0
    Views:
    443
    George2
    Apr 5, 2008
  7. Keith

    Insert NULL if Form Field Blank

    Keith, Jun 9, 2004, in forum: ASP General
    Replies:
    1
    Views:
    216
  8. Replies:
    1
    Views:
    148
    Matt Garrish
    Dec 30, 2004
Loading...