Hello all,
I have a little problem with the custor mapping.
Maybe someone knows, if this what I need is possible with castor.
First take a look at the xml:
<ROOT>
<Table Table_Name="Sales Price">
<Item_No>xyz</Item_No>
<Customer_No>abc</Customer_No>
<Quantity>1</Quantity>
<Amount>123</Amount>
</Table>
<Table Table_Name="Item">
<No>def</No>
<Availability_Numeric>3<Availability_Numeric>
</Table>
</ROOT>
I receive a list of <Table>-elements which are nested in a
<ROOT>-Element. As you can see, each <Table>-element represents an other
data type. The first is a "Sales Price" and the second is an "Item". So
the data type is defined by the "Table_Name"-Attribute in the
<Table>-tag. That's not beautiful, but it is given...
Here is the part of my mapping-file:
<field name="table" collection="arraylist" type="????">
<bind-xml name="Table" node="element"/>
</field>
The type in the <field>-tag is different, so how is it possible to tell
castor, that it is an "Item" or a "Sales Price"??
Best regards,
Jens
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------