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. Advertising

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. George2

    marshall interface needed?

    George2, Apr 5, 2008, in forum: C Programming
    Replies:
    0
    Views:
    363
    George2
    Apr 5, 2008
  2. Jean-Michel Pichavant

    xmlrcp - how to marshall objects

    Jean-Michel Pichavant, Feb 5, 2010, in forum: Python
    Replies:
    0
    Views:
    231
    Jean-Michel Pichavant
    Feb 5, 2010
  3. Sam Roberts
    Replies:
    6
    Views:
    155
    Sam Roberts
    Dec 6, 2003
  4. S. Robert James

    Marshall and Modules

    S. Robert James, Dec 11, 2006, in forum: Ruby
    Replies:
    1
    Views:
    90
    Eric Hodel
    Dec 11, 2006
  5. Aaron Smith

    insert marshall'd data into mysql

    Aaron Smith, Jun 25, 2007, in forum: Ruby
    Replies:
    4
    Views:
    169
    Aaron Smith
    Jun 25, 2007
Loading...

Share This Page