PurchaseOrder Schema
PurchaseOrder Schema / Items Complex Type
In This Topic
    Items Complex Type
    In This Topic
    Description
    Describes the items in the purchase order.
    Namespace (none)
    Diagram
    item Element Sequence Items Complex Type
    Overview
    Items
    Describes the items in the purchase order.
    Sequence
    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.
    Used By
    Source
    <xs:complexType name="Items" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:annotation>
        <xs:documentation xml:lang="en">Describes the items in the purchase order.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
        <xs:element name="item" minOccurs="0" maxOccurs="unbounded">
          <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>
      </xs:sequence>
    </xs:complexType>
    See Also