Hi, I'm trying to marshall some XML that looks like this:
<result>
...
<totalCost currency="USD">20.00</totalCost>
...
</result>
but have only been able to generate the following XML:
<totalCost currency="USD">
<amount>20.00</amount>
</totalCost>
My java model looks something like this:
public class Result {
...
private Money totalCost;
...
}
and
public class Money {
...
private String currency;
private String amount;
...
}
So, I guess what I want to is to flatten the <amount/> element into a simple
text() representation rather than have the element explicitly represented.
I've tried every possible combination of attributes in my custom.xml before
calling bindgen, including things like "form='simple', but I always run into
the same basic issue. Is there any way to include the parent element with
the attribute and text without having to generate a child element?
Thanks,
Todd
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users