This will make some simple changes to the purchase order and write it back
out to a new file.
// Add a new order
Order order = new Order(77, "990-7716-23");
order.setManufacturerName("Toshiba");
order.setProductName("PCX1100U Cable Modem");
order.setPurchasePrice(new Float(87.98).floatValue());
order.setStock(new Stock(30));
// Add to overall order
purchaseOrder.addOrder(order);
// Remove the second item in the order
purchaseOrder.getOrderList().remove(1);
// Marshal to XML
Quick.express(purchaseOrderDoc, outputFile.getAbsolutePath());