Ali-

This happens to be a fairly standard example in Castor. You can see examples of how to handle it at:

   http://castor.codehaus.org/xml-fieldhandlers.html

Just be sure to read through both the Simple FieldHandler section and the Generalized FieldHandler, as the Generalized leverages the concepts explored in the Simple section, but makes them easier to implement.

HTH,
Stephen


Ali Emami wrote:
Hi everyone,
Is it possible to unmarshall a xml with date field?

I have something like this in my xml:

<myinfo ..... some_dt="2003/03/03" ....  />


And in my mapping class I have:
    <field name="SomeDt">
      <bind-xml name="some_dt" node="attribute"/>
    </field>

But I get the following exception:

error: java.lang.IllegalStateException: Invalid dateTime format:
2003/03/03{file: [not available]; line: 5; column: 21}>

I have tried to format my date differently but no lock
Any idea?

Thanks in advanced

-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------



-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to