String getItemAttribute (int itemNumber, elementName, attributeName)

itemNumber and elementName are described as for getItemElement( ). elementName and attributeName are both String. attributeName must be “unit.” The method returns the text of the unit attribute of the item.

NoteSince the Order documents currently have only one attribute, the attributeName parameter is unnecessary. It is included to illustrate the general case.

For example, if ox is a Java variable of type OrderXml

String itemid - ox.getItemAttribute(2,“unit”)