Given the class (skipping out all the junk)
Class Entity {
Private ClientNo
}
class ClientNo{
String clientno;
}
and the following mapping
<class
name = " Entity"
auto-complete = "false">
<map-to xml="clientsummary"/>
<field name="ClientNo" type=" ClientNo">
<bind-xml name="clientno_" />
</field>
</class>
<class
name = " ClientNo"
auto-complete="false">
<field name="ClientNo">
<bind-xml name="clientno" node="attribute" />
</field>
</class>
Results in the following XML
<clientsummary>
<clientno_ clientno="ASH141"/>
</clientsummary>
How can I change this to be
<clientsummary clientno="ASH141"/>
</clientsummary>
I.e. the field in ClientNo must appear as an attribute inside the higher
XML tag.
Thanks
Richard
We have moved!
>From Monday December 6th the Australian offices of ADERANT are in great new
>premises in both Melbourne and Sydney.
Our new contact details are:
Level 8, 488 Bourke St, Melbourne, Tel +61 3 99937310 and Level 8, 74
Castlereagh St, Sydney, Tel +61 2 85071600
######################################################################
Attention:
This e-mail message is privileged and confidential. If you are not the
intended recipient please delete the message and notify the sender.
Any views or opinions presented are solely those of the author.
######################################################################
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user