Schema StateList.xsd


schema location:  http://www.con-way.com/XML/StateList.xsd
 
Elements  Simple types 
StateList  StateListDescriptionType 


schema location:  http://www.con-way.com/XML/LocationTypes.xsd
 
Elements  Complex types  Simple types 
Addr  AddressType  AddrType 
Address  CNAddressType  CityType 
BillToState  CNStatePairType  CNCountryCodeType 
BillToZip  MXAddressType  CNPostalCodeType 
City  MXStatePairType  CNStateCodeType 
CNAddress  PostalCodeWithCountryType  CNStateNameType 
CNCountryCode  StatePairType  CountryCodeType 
CNPostalCode  USAddressType  CountryNameType 
CNStateCode  USCNAddressType  MXCountryCodeType 
CNStateName  USCNPostalCodeWithCountryType  MXPostalCodeType 
CNStatePair  USStatePairType  MXStateCodeType 
CODremitToState  MXStateNameType 
CODremitToZip  NameType 
ConsigneeState  PostalCodeType 
ConsigneeZip  StateCodeType 
CountryCode  StateNameType 
CountryName  USCNCountryCodeType 
DestinationZip  USCNPostalCodeType 
MXAddress  USCNStateCodeType 
MXCountryCode  USCNStateNameType 
MXPostalCode  USCountryCodeType 
MXStateCode  USPostalCodeType 
MXStateName  USStateCodeType 
MXStatePair  USStateNameType 
OriginZip 
PostalCode 
ShipperState 
ShipperZip 
State 
StateCode 
StateName 
StatePair 
USAddress 
USCNAddress 
USCNCountryCode 
USCNPostalCode 
USCNStateCode 
USCNStateName 
USCountryCode 
USPostalCode 
USStateCode 
USStateName 
USStatePair 
Zip 


element StateList
diagram
properties
content complex
children US CN MX
annotation
documentation 
Validates StateList.xml.  Uses LocationTypes.xsd	
source
<xs:element name="StateList">
  <xs:annotation>
    <xs:documentation>Validates StateList.xml.  Uses LocationTypes.xsd	</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="US">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CountryName" type="CountryNameType"/>
            <xs:element name="StateListDescription" type="StateListDescriptionType"/>
            <xs:element name="State" type="USStatePairType" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="CN">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CountryName" type="CountryNameType"/>
            <xs:element name="StateListDescription" type="StateListDescriptionType"/>
            <xs:element name="State" type="CNStatePairType" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="MX">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CountryName" type="CountryNameType"/>
            <xs:element name="StateListDescription" type="StateListDescriptionType"/>
            <xs:element name="State" type="MXStatePairType" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element StateList/US
diagram
properties
isRef 0
content complex
children CountryName StateListDescription State
source
<xs:element name="US">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CountryName" type="CountryNameType"/>
      <xs:element name="StateListDescription" type="StateListDescriptionType"/>
      <xs:element name="State" type="USStatePairType" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element StateList/US/CountryName
diagram
type CountryNameType
properties
isRef 0
content simple
facets
whiteSpace collapse
enumeration USA
enumeration United States
enumeration Canada
enumeration Mexico
source
<xs:element name="CountryName" type="CountryNameType"/>

element StateList/US/StateListDescription
diagram
type StateListDescriptionType
properties
isRef 0
content simple
facets
whiteSpace collapse
enumeration -USA States/Territories-
enumeration -Canadian Provinces-
enumeration -MX States/Districts-
source
<xs:element name="StateListDescription" type="StateListDescriptionType"/>

element StateList/US/State
diagram
type USStatePairType
properties
isRef 0
content complex
children USStateCode USStateName
source
<xs:element name="State" type="USStatePairType" maxOccurs="unbounded"/>

element StateList/CN
diagram
properties
isRef 0
content complex
children CountryName StateListDescription State
source
<xs:element name="CN">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CountryName" type="CountryNameType"/>
      <xs:element name="StateListDescription" type="StateListDescriptionType"/>
      <xs:element name="State" type="CNStatePairType" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element StateList/CN/CountryName
diagram
type CountryNameType
properties
isRef 0
content simple
facets
whiteSpace collapse
enumeration USA
enumeration United States
enumeration Canada
enumeration Mexico
source
<xs:element name="CountryName" type="CountryNameType"/>

element StateList/CN/StateListDescription
diagram
type StateListDescriptionType
properties
isRef 0
content simple
facets
whiteSpace collapse
enumeration -USA States/Territories-
enumeration -Canadian Provinces-
enumeration -MX States/Districts-
source
<xs:element name="StateListDescription" type="StateListDescriptionType"/>

element StateList/CN/State
diagram
type CNStatePairType
properties
isRef 0
content complex
children CNStateCode CNStateName
source
<xs:element name="State" type="CNStatePairType" maxOccurs="unbounded"/>

element StateList/MX
diagram
properties
isRef 0
content complex
children CountryName StateListDescription State
source
<xs:element name="MX">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CountryName" type="CountryNameType"/>
      <xs:element name="StateListDescription" type="StateListDescriptionType"/>
      <xs:element name="State" type="MXStatePairType" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element StateList/MX/CountryName
diagram
type CountryNameType
properties
isRef 0
content simple
facets
whiteSpace collapse
enumeration USA
enumeration United States
enumeration Canada
enumeration Mexico
source
<xs:element name="CountryName" type="CountryNameType"/>

element StateList/MX/StateListDescription
diagram
type StateListDescriptionType
properties
isRef 0
content simple
facets
whiteSpace collapse
enumeration -USA States/Territories-
enumeration -Canadian Provinces-
enumeration -MX States/Districts-
source
<xs:element name="StateListDescription" type="StateListDescriptionType"/>

element StateList/MX/State
diagram
type MXStatePairType
properties
isRef 0
content complex
children MXStateCode MXStateName
source
<xs:element name="State" type="MXStatePairType" maxOccurs="unbounded"/>

simpleType StateListDescriptionType
type restriction of xs:string
used by
elements StateList/US/StateListDescription StateList/CN/StateListDescription StateList/MX/StateListDescription
facets
whiteSpace collapse
enumeration -USA States/Territories-
enumeration -Canadian Provinces-
enumeration -MX States/Districts-
annotation
documentation 
base type validates StateListDescription
source
<xs:simpleType name="StateListDescriptionType">
  <xs:annotation>
    <xs:documentation>base type validates StateListDescription</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:string">
    <xs:whiteSpace value="collapse"/>
    <xs:enumeration value="-USA States/Territories-"/>
    <xs:enumeration value="-Canadian Provinces-"/>
    <xs:enumeration value="-MX States/Districts-"/>
  </xs:restriction>
</xs:simpleType>

element Addr
diagram
type AddrType
properties
content simple
facets
maxLength 30
annotation
documentation 
Any address validated by AddressType
source
<xs:element name="Addr" type="AddrType">
  <xs:annotation>
    <xs:documentation>Any address validated by AddressType</xs:documentation>
  </xs:annotation>
</xs:element>

element Address
diagram
type AddressType
properties
content complex
children Name Addr City State PostalCode
annotation
documentation 
Any address validated by AddressType
source
<xs:element name="Address" type="AddressType">
  <xs:annotation>
    <xs:documentation>Any address validated by AddressType</xs:documentation>
  </xs:annotation>
</xs:element>

element BillToState
diagram
properties
substGrp State
annotation
documentation 
BillTo's 2 char US state or Canadian province code validated by USCNStateCodeType
source
<xs:element name="BillToState" substitutionGroup="State">
  <xs:annotation>
    <xs:documentation>BillTo's 2 char US state or Canadian province code validated by USCNStateCodeType</xs:documentation>
  </xs:annotation>
</xs:element>

element BillToZip
diagram
properties
substGrp Zip
annotation
documentation 
US or Canadian BillTo postal code with country attribute validated by USCNPostalCodeWithCountry Type
source
<xs:element name="BillToZip" substitutionGroup="Zip">
  <xs:annotation>
    <xs:documentation>US or Canadian BillTo postal code with country attribute validated by USCNPostalCodeWithCountry Type</xs:documentation>
  </xs:annotation>
</xs:element>

element City
diagram
type CityType
properties
content simple
facets
maxLength 20
annotation
documentation 
City Element validated by CityType
source
<xs:element name="City" type="CityType">
  <xs:annotation>
    <xs:documentation>City Element validated by CityType</xs:documentation>
  </xs:annotation>
</xs:element>

element CNAddress
diagram
type CNAddressType
properties
content complex
children Name Name1 Addr City State PostalCode
annotation
documentation 
Canadian address validated by CNAddressType
source
<xs:element name="CNAddress" type="CNAddressType">
  <xs:annotation>
    <xs:documentation>Canadian address validated by CNAddressType</xs:documentation>
  </xs:annotation>
</xs:element>

element CNCountryCode
diagram
type CNCountryCodeType
properties
content simple
facets
length 2
whiteSpace collapse
enumeration CN
enumeration cn
annotation
documentation 
enumeration of valid 2 char Canadian country codes
source
<xs:element name="CNCountryCode" type="CNCountryCodeType">
  <xs:annotation>
    <xs:documentation>enumeration of valid 2 char Canadian country codes</xs:documentation>
  </xs:annotation>
</xs:element>

element CNPostalCode
diagram
type CNPostalCodeType
properties
content simple
facets
minLength 6
maxLength 7
whiteSpace collapse
pattern [a-zA-Z]\d[a-zA-Z]-?\s?\d[a-zA-Z]\d
annotation
documentation 
Canadian postal code validated by CNPostalCodeType
source
<xs:element name="CNPostalCode" type="CNPostalCodeType">
  <xs:annotation>
    <xs:documentation>Canadian postal code validated by CNPostalCodeType</xs:documentation>
  </xs:annotation>
</xs:element>

element CNStateCode
diagram
type CNStateCodeType
properties
content simple
used by
complexType CNStatePairType
facets
length 2
whiteSpace collapse
enumeration AB
enumeration BC
enumeration MB
enumeration NB
enumeration NL
enumeration NS
enumeration NT
enumeration NU
enumeration ON
enumeration PE
enumeration PQ
enumeration QC
enumeration SK
enumeration YT
annotation
documentation 
2 char Canadian province code validated by CNStateCodeType
source
<xs:element name="CNStateCode" type="CNStateCodeType">
  <xs:annotation>
    <xs:documentation>2 char Canadian province code validated by CNStateCodeType</xs:documentation>
  </xs:annotation>
</xs:element>

element CNStateName
diagram
type CNStateNameType
properties
content simple
used by
complexType CNStatePairType
facets
whiteSpace collapse
enumeration Alberta
enumeration British Columbia
enumeration Manitoba
enumeration New Brunswick
enumeration Newfoundland
enumeration Nova Scotia
enumeration Northwest Territories
enumeration Nunavut
enumeration Ontario
enumeration Prince Edward Island
enumeration Quebec
enumeration Saskatchewan
enumeration Yukon Territory
annotation
documentation 
Canadian province name validated by CNStateNameType
source
<xs:element name="CNStateName" type="CNStateNameType">
  <xs:annotation>
    <xs:documentation>Canadian province name validated by CNStateNameType</xs:documentation>
  </xs:annotation>
</xs:element>

element CNStatePair
diagram
type CNStatePairType
properties
content complex
children CNStateCode CNStateName
annotation
documentation 
2 char Canadian province code and name pair validated by StatePairType
source
<xs:element name="CNStatePair" type="CNStatePairType">
  <xs:annotation>
    <xs:documentation>2 char Canadian province code and name pair validated by StatePairType</xs:documentation>
  </xs:annotation>
</xs:element>

element CODremitToState
diagram
properties
substGrp State
annotation
documentation 
COD party's 2 char US state or Canadian province code validated by USCNStateCodeType
source
<xs:element name="CODremitToState" substitutionGroup="State">
  <xs:annotation>
    <xs:documentation>COD party's 2 char US state or Canadian province code validated by USCNStateCodeType</xs:documentation>
  </xs:annotation>
</xs:element>

element CODremitToZip
diagram
propertie