What Java type are you using for the Java property that stores values for the <date> element ? java.util.Date ?

Werner

poijava wrote:
Thanks. I saw this after I made my post and it works very weel. The only
problem is that the parser seems to fall over when trying to parse a date in
the format "04-Feb-2008" stating "Bad DateTime format" date is too short.

Can you help?


Thanks again.


Ralf Joachim-2 wrote:
Hi,

take a look at: http://castor.codehaus.org/how-to-map-a-list-at-root.html

Regards
Ralf


poijava schrieb:
Hi,

Can someone explain how I can generate an ArrayList of instrument objects
from the following xml:

<?xml version="1.0" encoding="UTF-8"?> <ins> <instrument> <date>04-Feb-2008</date> <bbg>Instrument 1</bbg> <sedol>5499131</sedol> <isin>IT0001233417</isin> <bookqty></bookqty> </instrument> <instrument> <date>04-Feb-2008</date> <bbg>Instrument 2</bbg> <sedol>5499131</sedol> <isin>IT0001233417</isin> <bookqty></bookqty> </instrument>
</ins>
--

Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: [EMAIL PROTECTED]

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email







---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to