Schema simple_asap_demo.xsd


schema location:  D:\XML schema\simple_asap_demo.xsd
 
Elements  Complex types 
customer_order  address 
customer_order_confirmation  customer_details 
manufacturer_order  manufacturer_details 
manufacturer_order_confirmation  order_details 
order_details_confirmation 


element customer_order
diagram
children customer_details order_details order_date
annotation
documentation 
Comment describing your root element
source
<xs:element name="customer_order">
  <xs:annotation>
    <xs:documentation>Comment describing your root element</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="customer_details" type="customer_details"/>
      <xs:element name="order_details" type="order_details"/>
      <xs:element name="order_date" type="xs:date"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element customer_order/customer_details
diagram
type customer_details
children first_name surname address phone_number
source
<xs:element name="customer_details" type="customer_details"/>

element customer_order/order_details
diagram
type order_details
children product_code product_description product_quantity
source
<xs:element name="order_details" type="order_details"/>

element customer_order/order_date
diagram
type xs:date
source
<xs:element name="order_date" type="xs:date"/>

element customer_order_confirmation
diagram
children customer_name order_date retailer_name order_number product_details in_stock manufacturer_details est_delivery_date
source
<xs:element name="customer_order_confirmation">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="customer_name" type="customer_details"/>
      <xs:element name="order_date" type="xs:date"/>
      <xs:element name="retailer_name" type="xs:string"/>
      <xs:element name="order_number" type="xs:positiveInteger"/>
      <xs:element name="product_details" type="order_details_confirmation"/>
      <xs:element name="in_stock" type="xs:boolean"/>
      <xs:element name="manufacturer_details" type="manufacturer_details"/>
      <xs:element name="est_delivery_date" type="xs:date"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element customer_order_confirmation/customer_name
diagram
type customer_details
children first_name surname address phone_number
source
<xs:element name="customer_name" type="customer_details"/>

element customer_order_confirmation/order_date
diagram
type xs:date
source
<xs:element name="order_date" type="xs:date"/>

element customer_order_confirmation/retailer_name
diagram
type xs:string
source
<xs:element name="retailer_name" type="xs:string"/>

element customer_order_confirmation/order_number
diagram
type xs:positiveInteger
source
<xs:element name="order_number" type="xs:positiveInteger"/>

element customer_order_confirmation/product_details
diagram
type order_details_confirmation
children order_details price_per_unit order_price
source
<xs:element name="product_details" type="order_details_confirmation"/>

element customer_order_confirmation/in_stock
diagram
type xs:boolean
source
<xs:element name="in_stock" type="xs:boolean"/>

element customer_order_confirmation/manufacturer_details
diagram
type manufacturer_details
children manufactured_by manufacturer_code manufacturer_receipt_date
source
<xs:element name="manufacturer_details" type="manufacturer_details"/>

element customer_order_confirmation/est_delivery_date
diagram
type xs:date
source
<xs:element name="est_delivery_date" type="xs:date"/>

element manufacturer_order
diagram
children order_date product_quantity product_code order_number retailer_name
source
<xs:element name="manufacturer_order">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="order_date" type="xs:date"/>
      <xs:element name="product_quantity" type="xs:positiveInteger"/>
      <xs:element name="product_code" type="xs:positiveInteger"/>
      <xs:element name="order_number" type="xs:positiveInteger"/>
      <xs:element name="retailer_name" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element manufacturer_order/order_date
diagram
type xs:date
source
<xs:element name="order_date" type="xs:date"/>

element manufacturer_order/product_quantity
diagram
type xs:positiveInteger
source
<xs:element name="product_quantity" type="xs:positiveInteger"/>

element manufacturer_order/product_code
diagram
type xs:positiveInteger
source
<xs:element name="product_code" type="xs:positiveInteger"/>

element manufacturer_order/order_number
diagram
type xs:positiveInteger
source
<xs:element name="order_number" type="xs:positiveInteger"/>

element manufacturer_order/retailer_name
diagram
type xs:string
source
<xs:element name="retailer_name" type="xs:string"/>

element manufacturer_order_confirmation
diagram
children availability_date manufacturer_name manufacturer_code
source
<xs:element name="manufacturer_order_confirmation">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="availability_date" type="xs:date"/>
      <xs:element name="manufacturer_name" type="xs:string"/>
      <xs:element name="manufacturer_code" type="xs:positiveInteger"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element manufacturer_order_confirmation/availability_date
diagram
type xs:date
source
<xs:element name="availability_date" type="xs:date"/>

element manufacturer_order_confirmation/manufacturer_name
diagram
type xs:string
source
<xs:element name="manufacturer_name" type="xs:string"/>

element manufacturer_order_confirmation/manufacturer_code
diagram
type xs:positiveInteger
source
<xs:element name="manufacturer_code" type="xs:positiveInteger"/>

complexType address
diagram
children first_line second_line city zipcode
used by
element customer_details/address
source
<xs:complexType name="address">
  <xs:sequence>
    <xs:element name="first_line" type="xs:string"/>
    <xs:element name="second_line" type="xs:string"/>
    <xs:element name="city" type="xs:string"/>
    <xs:element name="zipcode" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element address/first_line
diagram
type xs:string
source
<xs:element name="first_line" type="xs:string"/>

element address/second_line
diagram
type xs:string
source
<xs:element name="second_line" type="xs:string"/>

element address/city
diagram
type xs:string
source
<xs:element name="city" type="xs:string"/>

element address/zipcode
diagram
type xs:string
source
<xs:element name="zipcode" type="xs:string"/>

complexType customer_details
diagram
children first_name surname address phone_number
used by
elements customer_order/customer_details customer_order_confirmation/customer_name
source
<xs:complexType name="customer_details">
  <xs:sequence>
    <xs:element name="first_name" type="xs:string"/>
    <xs:element name="surname" type="xs:string"/>
    <xs:element name="address" type="address"/>
    <xs:element name="phone_number" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element customer_details/first_name
diagram
type xs:string
source
<xs:element name="first_name" type="xs:string"/>

element customer_details/surname
diagram
type xs:string
source
<xs:element name="surname" type="xs:string"/>

element customer_details/address
diagram
type address
children first_line second_line city zipcode
source
<xs:element name="address" type="address"/>

element customer_details/phone_number
diagram
type xs:string
source
<xs:element name="phone_number" type="xs:string"/>

complexType manufacturer_details
diagram
children manufactured_by manufacturer_code manufacturer_receipt_date
used by
element customer_order_confirmation/manufacturer_details
source
<xs:complexType name="manufacturer_details">
  <xs:sequence>
    <xs:element name="manufactured_by" type="xs:string"/>
    <xs:element name="manufacturer_code" type="xs:positiveInteger"/>
    <xs:element name="manufacturer_receipt_date" type="xs:date"/>
  </xs:sequence>
</xs:complexType>

element manufacturer_details/manufactured_by
diagram
type xs:string
source
<xs:element name="manufactured_by" type="xs:string"/>

element manufacturer_details/manufacturer_code
diagram
type xs:positiveInteger
source
<xs:element name="manufacturer_code" type="xs:positiveInteger"/>

element manufacturer_details/manufacturer_receipt_date
diagram
type xs:date
source
<xs:element name="manufacturer_receipt_date" type="xs:date"/>

complexType order_details
diagram
children product_code product_description product_quantity
used by
elements customer_order/order_details order_details_confirmation/order_details
source
<xs:complexType name="order_details">
  <xs:sequence>
    <xs:element name="product_code" type="xs:positiveInteger"/>
    <xs:element name="product_description" type="xs:string"/>
    <xs:element name="product_quantity" type="xs:positiveInteger"/>
  </xs:sequence>
</xs:complexType>

element order_details/product_code
diagram
type xs:positiveInteger
source
<xs:element name="product_code" type="xs:positiveInteger"/>

element order_details/product_description
diagram
type xs:string
source
<xs:element name="product_description" type="xs:string"/>

element order_details/product_quantity
diagram
type xs:positiveInteger
source
<xs:element name="product_quantity" type="xs:positiveInteger"/>

complexType order_details_confirmation
diagram
children order_details price_per_unit order_price
used by
element customer_order_confirmation/product_details
source
<xs:complexType name="order_details_confirmation">
  <xs:sequence>
    <xs:element name="order_details" type="order_details"/>
    <xs:element name="price_per_unit" type="xs:float"/>
    <xs:element name="order_price" type="xs:float"/>
  </xs:sequence>
</xs:complexType>

element order_details_confirmation/order_details
diagram
type order_details
children product_code product_description product_quantity
source
<xs:element name="order_details" type="order_details"/>

element order_details_confirmation/price_per_unit
diagram
type xs:float
source
<xs:element name="price_per_unit" type="xs:float"/>

element order_details_confirmation/order_price
diagram
type xs:float
source
<xs:element name="order_price" type="xs:float"/>


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