Hi,
I'm wondering if any of you can help me.
I have classes such as
public class Book{
...
public String id;
...
public String getId()
...
public void setId(String id)
...
}
and
public class Currency{
...
public String id;
...
public String getId()
...
public void setId(String id)
...
}
My Castor mapping file looks like this for each of them
<mapping>
...
<class name="Book">
<map-to xml="bookId"/>
<field name="id" type="string">
<bind-xml name="id" node="element"/>
</field>
</class>
...
<class name="Currency">
<map-to xml="currencyId"/>
<field name="id" type="string">
<bind-xml name="id" node="element"/>
</field>
</class>
</mapping>
The xml is now generated as such
<?xml vesion="1.0"?>
<currencyId>
<id>3DSZM1000000003</id>
</currencyId>
<currencyId>
<id>3DSZM1000000004</id>
</currencyId>
Is there anyway to change the mapping file so i can get the marshalled xml
to look as follows
<?xml vesion="1.0"?>
<currencyId>3DSZM1000000003</currencyId>
<currencyId>3DSZM1000000004</currencyId>
If you need any extra information, then please let me know
Thanks in advance
Andrew
Andrew Mace
Global Markets Derivatives Technology
Deutsche Bank
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev