Chisholm, Paul wrote:
I cant quite work out what to put in a binding in a situation that is so
simple it must be staring me in the face. The XML is
<code valid="true">22001</code>
the class is
class Code
{
private String code;
private boolean valid;
}
The binding goes something like
<mapping name="code" class="Code">
<value name="valid" field="valid" style="attribute"/>
????
</mapping>
This should work.
<mapping name="code" class="Code">
<value name="valid" field="valid" style="attribute"/>
<value style="text" field="code"/>
</mapping>
The < value style=text > tag takes care of the data in the tags.
--
Thomas Jones-Low Softstart Services Inc.
[EMAIL PROTECTED] JobScheduler for Oracle
Ph: 802-398-1012 http://www.softstart.com
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users