Hi,
We are trying to unmarshall an xml file which has more than
one object.
Sample xml file.
<?xml version="1.0" encoding="UTF-8"?>
<class1>
<name>james</name>
<id>34</id>
</class1>
<class1>
<name>jack</name>
<id>45</id>
</class1>
I have the mapping file for the individual class class1.
<?xml version="1.0" encoding="UTF-8"?>
<mapping>
<class name="class1" auto-complete="false">
<description>class1</description>
<map-to xml="class1"/>
<field name="name" type="java.lang.String"
required="false" direct="true" transient="false">
<bind-xml name="name" node="element"
reference="false"/>
</field>
<field name="id" type="java.lang.String"
required="false" direct="true" transient="false">
<bind-xml name="id" node="element"
reference="false"/>
</field>
</class>
</mapping>
With this mapping file, i'm able to unmarshall a single
instance of object in the xml file. Any suggestions/samples
on how i can modify the mappin g file to be able to
unmarshall the whole array of objects. Should i add a vector
in the mapping file? any sample mapping files would be of
great help for me.
thanks in advance.
brahma.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev