Hi All,
I have below simple class
Customer.java
---------------------
import java.util.*;
public class Customer1 {
Order[] orderArray = null;
public void setOrderArray(Order[] orderArray) {
this.orderArray = orderArray;
}
public Order[] getOrderArray() {
return orderArray;
}
}
output.xml
----------------
<?xml version="1.0" encoding="UTF-8"?>
<customer>
<order>
<orderNumber>10000</orderNumber>
<orderName>DHL</orderName>
</order>
<order>
<orderNumber>10001</orderNumber>
<orderName>FedEx</orderName>
</order>
</customer>
Order class is a simple java bean. Now, my question is can anyone
please tell me how to write binding.xml
for Order[] array in Customer class and I want to produce output.xml
in the format shown above. I am struck at how to represent array of
objects in binding xml file.
Do we need to write a custom marshaller for this. Can we do without
it. Please suggest ...
Thanks & Regards,
Kumar.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users