However, qualifiers have been added to the grammar. In the examples that follow, we'll focus only on the purchase element. In this way, you'll be able to see a complete example of how all aspects of a key element in a document are created. You can, of course, apply similar concepts to flesh out the customer element later. In this case, you must specify the element's data type.
Most basic elements have a declaration stating that they contain parsed character data.
The individual items in a purchase transaction probably have additional information associated with them, such as a catalog number, a description of the item and the number of items purchased. You can track this information within the item element. These elements could be named itemno, itemdes, and quantity respectively. Although most purchase transactions will contain actual purchases, a customer may be altering or canceling a previous order. In this case, you may need to place a note describing the action in the item field.