Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > JAXB marshall object with null date field to blank xml element

Thread Tools

JAXB marshall object with null date field to blank xml element

sai krishna
Posts: n/a
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?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to Update/insert an xml element's text----> (<element>text</element>) HANM XML 2 01-29-2008 03:31 PM
Insert NULL if Form Field Blank Keith ASP General 1 06-09-2004 12:16 PM
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
Re: JAXB how to drop tag element in xml Enrique Java 0 04-01-2004 05:32 AM
JAXB javax.xml.bind.UnmarshalException Unexpected element Norberto Eichstaedt Java 0 01-17-2004 05:42 PM