Hi Dan,
try define a name for bind-xml element in the mapping file like this:
<class name="com.Service">
<map-to xml="service"/>
<field name="id"><bind-xml name="id" node="attribute"/></field>
<field name="mode"><bind-xml name="mode" node="attribute"/></field>
</class>
or try define the mode auto-naming like this:
<class name="com.Service">
<map-to xml="service"/>
<field name="id"><bind-xml auto-naming="deriveByField"
node="attribute"/></field>
<field name="mode"><bind-xml auto-naming="deriveByField"
node="attribute"/></field>
</class>
I think that will work.
Regards,
Marcelo Henrique
[EMAIL PROTECTED] escreveu: Hi All,
I have a class called Service with two attributes, mode and id.
Currently I am using Castor to unmarshal this xml:
The fields are mapped like this:
Is there any way to map the class so that the id attribute is mapped
like this:
D2STD
Rather than like this:
D2STD
Much appreciated,
Dan.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
*-----------------------------------------------------*
|| Marcelo Henrique De Oliveira Lima
|| Ciência da Computação - UECE
|| Linux User #399803
|| Slackware GNU/Linux Powered!
*-----------------------------------------------------*
---------------------------------
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!