Schema wfm_xml_demo.xsd


schema location:  D:\EAIJava\java\wfm_xml_demo.xsd
targetNamespace:  http://www.staffware.com/2004/wfmc_demo
 
Elements  Complex types  Simple types 
dist_order  address  dist_order_code_type 
mfr_advance_ship_notice  mfr_order_code_type 
mfr_order  mfr_order_ref_type 
mfr_order_ack  order_status_type 
transport_confirmation  ship_status_type 
transport_request  transport_ref_type 
warehouse_advance_ship_notice 
warehouse_order 


element dist_order
diagram
namespace http://www.staffware.com/2004/wfmc_demo
children products code
annotation
documentation 
Sent from retailer to distributor
source
<xs:element name="dist_order">
  <xs:annotation>
    <xs:documentation>Sent from retailer to distributor</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="products" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="code" type="mfr_order_code_type"/>
            <xs:element name="quantity" type="xs:positiveInteger"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="code" type="dist_order_code_type"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element dist_order/products
diagram
namespace http://www.staffware.com/2004/wfmc_demo
children code quantity
source
<xs:element name="products" maxOccurs="unbounded">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="code" type="mfr_order_code_type"/>
      <xs:element name="quantity" type="xs:positiveInteger"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element dist_order/products/code
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type mfr_order_code_type
facets
pattern [A-Z]{2}[0-9]{6}
source
<xs:element name="code" type="mfr_order_code_type"/>

element dist_order/products/quantity
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:positiveInteger
source
<xs:element name="quantity" type="xs:positiveInteger"/>

element dist_order/code
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type dist_order_code_type
facets
pattern [0-9]{6}
source
<xs:element name="code" type="dist_order_code_type"/>

element mfr_advance_ship_notice
diagram
namespace http://www.staffware.com/2004/wfmc_demo
children ship_date order_ref transport_ref
annotation
documentation 
Sent from manufacturer to distributor
source
<xs:element name="mfr_advance_ship_notice">
  <xs:annotation>
    <xs:documentation>Sent from manufacturer to distributor</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ship_date" type="xs:date"/>
      <xs:element name="order_ref" type="mfr_order_ref_type"/>
      <xs:element name="transport_ref" type="transport_ref_type"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element mfr_advance_ship_notice/ship_date
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:date
source
<xs:element name="ship_date" type="xs:date"/>

element mfr_advance_ship_notice/order_ref
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type mfr_order_ref_type
facets
pattern [0-9]{6}
source
<xs:element name="order_ref" type="mfr_order_ref_type"/>

element mfr_advance_ship_notice/transport_ref
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type transport_ref_type
facets
pattern [0-9]{6}
source
<xs:element name="transport_ref" type="transport_ref_type"/>

element mfr_order
diagram
namespace http://www.staffware.com/2004/wfmc_demo
children code quantity
annotation
documentation 
Sent from distributor to manufacturer
source
<xs:element name="mfr_order">
  <xs:annotation>
    <xs:documentation>Sent from distributor to manufacturer</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="code" type="mfr_order_code_type"/>
      <xs:element name="quantity" type="xs:positiveInteger"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element mfr_order/code
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type mfr_order_code_type
facets
pattern [A-Z]{2}[0-9]{6}
source
<xs:element name="code" type="mfr_order_code_type"/>

element mfr_order/quantity
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:positiveInteger
source
<xs:element name="quantity" type="xs:positiveInteger"/>

element mfr_order_ack
diagram
namespace http://www.staffware.com/2004/wfmc_demo
children status ref
annotation
documentation 
Sent from manufacturer to distributor
source
<xs:element name="mfr_order_ack">
  <xs:annotation>
    <xs:documentation>Sent from manufacturer to distributor</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="status" type="order_status_type"/>
      <xs:element name="ref" type="mfr_order_ref_type" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Only present if status is "Can complete"</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element mfr_order_ack/status
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type order_status_type
facets
enumeration Can complete
enumeration Can't complete
source
<xs:element name="status" type="order_status_type"/>

element mfr_order_ack/ref
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type mfr_order_ref_type
facets
pattern [0-9]{6}
annotation
documentation 
Only present if status is "Can complete"
source
<xs:element name="ref" type="mfr_order_ref_type" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Only present if status is "Can complete"</xs:documentation>
  </xs:annotation>
</xs:element>

element transport_confirmation
diagram
namespace http://www.staffware.com/2004/wfmc_demo
children mfr_ref ship_status transport_ref
annotation
documentation 
Sent from transportation company to manufacturer
source
<xs:element name="transport_confirmation">
  <xs:annotation>
    <xs:documentation>Sent from transportation company to manufacturer</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="mfr_ref" type="mfr_order_ref_type"/>
      <xs:element name="ship_status" type="ship_status_type"/>
      <xs:element name="transport_ref" type="transport_ref_type" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Only present if ship_status is  "Can ship"</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element transport_confirmation/mfr_ref
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type mfr_order_ref_type
facets
pattern [0-9]{6}
source
<xs:element name="mfr_ref" type="mfr_order_ref_type"/>

element transport_confirmation/ship_status
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type ship_status_type
facets
enumeration Can ship
enumeration Can't ship
source
<xs:element name="ship_status" type="ship_status_type"/>

element transport_confirmation/transport_ref
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type transport_ref_type
facets
pattern [0-9]{6}
annotation
documentation 
Only present if ship_status is  "Can ship"
source
<xs:element name="transport_ref" type="transport_ref_type" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Only present if ship_status is  "Can ship"</xs:documentation>
  </xs:annotation>
</xs:element>

element transport_request
diagram
namespace http://www.staffware.com/2004/wfmc_demo
children mfr_ref warehouse_address distributor_address ship_date
annotation
documentation 
Sent from manufacturer to transportation company
source
<xs:element name="transport_request">
  <xs:annotation>
    <xs:documentation>Sent from manufacturer to transportation company</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="mfr_ref" type="mfr_order_ref_type"/>
      <xs:element name="warehouse_address" type="address"/>
      <xs:element name="distributor_address" type="address"/>
      <xs:element name="ship_date" type="xs:date"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element transport_request/mfr_ref
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type mfr_order_ref_type
facets
pattern [0-9]{6}
source
<xs:element name="mfr_ref" type="mfr_order_ref_type"/>

element transport_request/warehouse_address
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type address
children first_line_address second_line_address third_line_address postcode
source
<xs:element name="warehouse_address" type="address"/>

element transport_request/distributor_address
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type address
children first_line_address second_line_address third_line_address postcode
source
<xs:element name="distributor_address" type="address"/>

element transport_request/ship_date
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:date
source
<xs:element name="ship_date" type="xs:date"/>

element warehouse_advance_ship_notice
diagram
namespace http://www.staffware.com/2004/wfmc_demo
children ship_date ref
annotation
documentation 
Sent from warehouse to retailer
source
<xs:element name="warehouse_advance_ship_notice">
  <xs:annotation>
    <xs:documentation>Sent from warehouse to retailer</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ship_date" type="xs:date"/>
      <xs:element name="ref" type="mfr_order_ref_type"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element warehouse_advance_ship_notice/ship_date
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:date
source
<xs:element name="ship_date" type="xs:date"/>

element warehouse_advance_ship_notice/ref
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type mfr_order_ref_type
facets
pattern [0-9]{6}
source
<xs:element name="ref" type="mfr_order_ref_type"/>

element warehouse_order
diagram
namespace http://www.staffware.com/2004/wfmc_demo
children code quantity ship_date ref
annotation
documentation 
Sent from manufacturer to warehouse
source
<xs:element name="warehouse_order">
  <xs:annotation>
    <xs:documentation>Sent from manufacturer to warehouse</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="code" type="mfr_order_code_type"/>
      <xs:element name="quantity" type="xs:positiveInteger"/>
      <xs:element name="ship_date" type="xs:date"/>
      <xs:element name="ref" type="mfr_order_ref_type"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element warehouse_order/code
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type mfr_order_code_type
facets
pattern [A-Z]{2}[0-9]{6}
source
<xs:element name="code" type="mfr_order_code_type"/>

element warehouse_order/quantity
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:positiveInteger
source
<xs:element name="quantity" type="xs:positiveInteger"/>

element warehouse_order/ship_date
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:date
source
<xs:element name="ship_date" type="xs:date"/>

element warehouse_order/ref
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type mfr_order_ref_type
facets
pattern [0-9]{6}
source
<xs:element name="ref" type="mfr_order_ref_type"/>

complexType address
diagram
namespace http://www.staffware.com/2004/wfmc_demo
children first_line_address second_line_address third_line_address postcode
used by
elements transport_request/distributor_address transport_request/warehouse_address
source
<xs:complexType name="address">
  <xs:sequence>
    <xs:element name="first_line_address" type="xs:string"/>
    <xs:element name="second_line_address" type="xs:string"/>
    <xs:element name="third_line_address" type="xs:string"/>
    <xs:element name="postcode" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element address/first_line_address
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:string
source
<xs:element name="first_line_address" type="xs:string"/>

element address/second_line_address
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:string
source
<xs:element name="second_line_address" type="xs:string"/>

element address/third_line_address
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:string
source
<xs:element name="third_line_address" type="xs:string"/>

element address/postcode
diagram
namespace http://www.staffware.com/2004/wfmc_demo
type xs:string
source
<xs:element name="postcode" type="xs:string"/>

simpleType dist_order_code_type
namespace http://www.staffware.com/2004/wfmc_demo
type restriction of xs:string
used by
element dist_order/code
facets
pattern [0-9]{6}
source
<xs:simpleType name="dist_order_code_type">
  <xs:restriction base="xs:string">
    <xs:pattern value="[0-9]{6}"/>
  </xs:restriction>
</xs:simpleType>

simpleType mfr_order_code_type
namespace http://www.staffware.com/2004/wfmc_demo
type restriction of xs:string
used by
elements mfr_order/code dist_order/products/code warehouse_order/code
facets
pattern [A-Z]{2}[0-9]{6}
source
<xs:simpleType name="mfr_order_code_type">
  <xs:restriction base="xs:string">
    <xs:pattern value="[A-Z]{2}[0-9]{6}"/>
  </xs:restriction>
</xs:simpleType>

simpleType mfr_order_ref_type
namespace http://www.staffware.com/2004/wfmc_demo
type restriction of xs:string
used by
elements transport_request/mfr_ref transport_confirmation/mfr_ref mfr_advance_ship_notice/order_ref mfr_order_ack/ref warehouse_order/ref warehouse_advance_ship_notice/ref
facets
pattern [0-9]{6}
source
<xs:simpleType name="mfr_order_ref_type">
  <xs:restriction base="xs:string">
    <xs:pattern value="[0-9]{6}"/>
  </xs:restriction>
</xs:simpleType>

simpleType order_status_type
namespace http://www.staffware.com/2004/wfmc_demo
type restriction of xs:string
used by
element mfr_order_ack/status
facets
enumeration Can complete
enumeration Can't complete
source
<xs:simpleType name="order_status_type">
  <xs:restriction base="xs:string">
    <xs:enumeration value="Can complete"/>
    <xs:enumeration value="Can't complete"/>
  </xs:restriction>
</xs:simpleType>

simpleType ship_status_type
namespace http://www.staffware.com/2004/wfmc_demo
type restriction of xs:string
used by
element transport_confirmation/ship_status
facets
enumeration Can ship
enumeration Can't ship
source
<xs:simpleType name="ship_status_type">
  <xs:restriction base="xs:string">
    <xs:enumeration value="Can ship"/>
    <xs:enumeration value="Can't ship"/>
  </xs:restriction>
</xs:simpleType>

simpleType transport_ref_type
namespace http://www.staffware.com/2004/wfmc_demo
type restriction of xs:string
used by
elements mfr_advance_ship_notice/transport_ref transport_confirmation/transport_ref
facets
pattern [0-9]{6}
source
<xs:simpleType name="transport_ref_type">
  <xs:restriction base="xs:string">
    <xs:pattern value="[0-9]{6}"/>
  </xs:restriction>
</xs:simpleType>


XML Schema documentation generated with
XMLSPY Schema Editor http://www.altova.com/xmlspy