I need to find a way to map the value of a java field to an attribute rather
than actual element data. For example,
My Java would be:
class Test
public String elem1;
public String elem2;
XML would be
<Test>
<elem1>data</elem1>
<elem2 value="data">data I don't want</elem2>
</Test>
Mapping would be:
<class name="Test">
<field name="elem1">
<bind-xml name="elem1" node="element">
</field>
<field name="elem2">
<!-- what do I put here to get the value attribute rather
than the contents of the element?? -->
</field>
</class>
Thanks,
Joe Rice
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user