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