PurchaseOrder Schema
item Element
PurchaseOrder Schema > Items Complex Type : item Element
Description
Describes an item in the purchase order.
Namespace (none)
Diagram
shipDate Element comment Element USPrice Element quantity Element productName Element Sequence item Element
Overview
item 0..∞
Describes an item in the purchase order.
Sequence
productName xs:string
The name of the product.
quantity Restriction of xs:positiveInteger
The number of units.
USPrice xs:decimal
The price of the item.
comment optional xs:string
Any comments about the order/item.
shipDate optional xs:date
The date the item was shipped.
Source
<xs:element name="item" minOccurs="0" maxOccurs="unbounded" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation xml:lang="en">Describes an item in the purchase order.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="productName" type="xs:string">
        <xs:annotation>
          <xs:documentation xml:lang="en">The name of the product.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="quantity">
        <xs:annotation>
          <xs:documentation xml:lang="en">The number of units.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:positiveInteger">
            <xs:maxExclusive value="100" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="USPrice" type="xs:decimal">
        <xs:annotation>
          <xs:documentation xml:lang="en">The price of the item.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element ref="comment" minOccurs="0" />
      <xs:element name="shipDate" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="en">The date the item was shipped.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attributeGroup ref="itemAttributeGroup" />
  </xs:complexType>
</xs:element>
See Also
Items Complex TypePurchaseOrder Schema