I've been having a problem getting the correct format on the date 
during marshalling. I've looked at the Castor Wiki page and got my 
own date handler to format correctly, but when I use the mapping 
file I get namespaces included into the element.

<Time xmlns="">2003-11-12T13:05:26</Time>

This format is correct, but I would like to get away with the 
namespace within the node. I've tried the following methods:

marshaller.setSuppressXSIType(true);
marshaller.setNoNamespaceSchemaLocation("urn:bankid:Bank_RA_Schema");
marshaller.setSchemaLocation("with_some_values");

in different combinations, but it doesn't seem to help me. 

I looked at the DateFieldHandler, but I'm a bit unsure how to 
actually use the DateFieldHandler class, since it doesn't have any 
empty constructor which is required when using it directly from the 
mapping file. 

The format that I want is very close to what I actually get default 
from Castor, but not excatly the same. Is it possible to remove the 
milliseconds and the timezone from the default formatting. I've 
looked through the property files, but couldn't find such a setting. 

I'm using 0.9.5.2 on WinNT 4.0, jdk1.4.1_02, locale Norwegian.

I can post more details if needed. 

Thanks

---- Trond

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to