{
PurchaseOrderDocument poDoc;
poDoc = PurchaseOrderDocument.Factory.newInstance();
PurchaseOrderType po = poDoc.addNewPurchaseOrder();
int LEN = 20;
Items.Item[] it = new Items.Item[LEN];
for (int i = 0; i < LEN; i++)
{
it[i] = Items.Item.Factory.newInstance();
it[i].setUSPrice(new BigDecimal("" + 4));
}
Items items = Items.Factory.newInstance();
items.setItemArray(it);
po.setItems(items);
StringBuffer sb = new StringBuffer();
sb.append("<pur:purchaseOrder xmlns:pur=\"http://xbean.interface_feature/fixedAttrBean/PurchaseOrder\">");
sb.append("<pur:items>");