void appendItem (newItemid, newItemName, newQuantity, newUnit)

The parameters are all String. The method appends a new item to the document, with the given element values. For example, if ox is a Java variable of type OrderXML:

ox.appendItem(“77”, “spacer”, “5”, “12”);