Hi Pravin, have you already had a look at: http://www.castor.org/how-to-map-a-hashtable.html
Regards Ralf pravinab schrieb: > Hi Werner, > Do you have any updates on this? > > Thanks, > Pravin > > > pravinab wrote: > >> Hi, >> I tried attaching the data object structure in an xls but looks like it is >> not getting attched correctly. >> Anyways, >> Here is the structure... >> Data Object Containing a Map as shown >> >> Map multiValuedAttributeMap >> Key Value >> ABC List of Maps >> Map1 Key Value >> attr1 12345678 >> attr2 2 >> >> Map2 Key Value >> attr1 23546335 >> attr2 2 >> >> XYZ Map1 Key Value >> attr1 Test >> Thanks, >> Pravin >> >> >> Werner Guttmann-6 wrote: >> >>> Hi, >>> >>> Could it be that you (coincidently) ommitted information about the data >>> object(s) ? >>> >>> Regards >>> Werner >>> >>> On 07.04.2010 19:45, pravinab wrote: >>> >>>> Knidly excuse for the earlier HTML post. >>>> >>>> Hi, >>>> We have a requirement for the following xml structure: Can anyone help >>>> on >>>> this. Details below >>>> <metadata> >>>> <parent-item-type name="table1"> >>>> <parent-item-type name="ABC"> >>>> <doc-attribute name="attr1" value="12345678" /> >>>> <doc-attribute name="attr2" value="2" /> >>>> </parent-item-type> >>>> <parent-item-type name="ABC"> >>>> <doc-attribute name="attr1" value="23546335" /> >>>> <doc-attribute name="attr2" value="2" /> >>>> </parent-item-type> >>>> <parent-item-type name="ABC"> >>>> <doc-attribute name="attr1" value="98553668" /> >>>> <doc-attribute name="attr2" value="4" /> >>>> </parent-item-type> >>>> <parent-item-type name="XYZ"> >>>> <doc-attribute name="attr1" value="Test" /> >>>> </parent-item-type> >>>> </parent-item-type> >>>> </metadata> >>>> >>>> The data object is in the following format: >>>> >>>> >>>> I was trying out the following mapping, but this is not working as >>>> expected. >>>> <field name="parentItemTypeListMap" collection="map"> >>>> <bind-xml name="parent-item-type" node="element" >>>> location="parent-item-type-list"> >>>> class name="org.exolab.castor.mapping.MapItem"> >>>> <field name="key" type="java.lang.String"> >>>> <bind-xml name="name" node="attribute" /> >>>> </field> >>>> <field name="value" collection="arraylist" type="java.util.Map"> >>>> <bind-xml name="doc-attribute" node="element" /> >>>> <class name="java.util.Map"> >>>> <description xmlns=""></description> >>>> <field name="key" type="java.lang.String"> >>>> <bind-xml name="name" node="attribute" /> >>>> </field> >>>> <field name="value" type="java.lang.String"> >>>> <bind-xml name="value" node="attribute" /> >>>> </field> >>>> </class> >>>> </field> >>>> </class> >>>> </bind-xml> >>>> </field> >>>> >>>> http://old.nabble.com/file/p28168430/DataObject.xlsx DataObject.xlsx >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> -- 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

