Definition Type: Element
Name: PostalCode
Namespace: urn:oasis:names:tc:ciq:xsdschema:xAL:2.0
Containing Schema: xAL.xsd
Abstract
Documentation:
PostalCode is the container element for either simple or complex (extended) postal codes. Type: Area Code, Postcode, etc.
Collapse XSD Schema Diagram:
Drilldown into PostTown in schema xal_xsd Drilldown into PostalCodeNumberExtension in schema xal_xsd Drilldown into PostalCodeNumber in schema xal_xsd Drilldown into AddressLine in schema xal_xsd Drilldown into Type in schema xal_xsdXSD Diagram of PostalCode in schema xal_xsd (OASIS Election Markup Language (EML))
Collapse XSD Schema Code:
<xs:element name="PostalCode">
    <xs:annotation>
        <xs:documentation>PostalCode is the container element for either simple or complex (extended) postal codes. Type: Area Code, Postcode, etc.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:sequence>
            <xs:element ref="AddressLine" minOccurs="0" maxOccurs="unbounded" />
            <xs:element name="PostalCodeNumber" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Specification of a postcode. The postcode is formatted according to country-specific rules. Example: SW3 0A8-1A, 600074, 2067</xs:documentation>
                </xs:annotation>
                <xs:complexType mixed="true">
                    <xs:attribute name="Type">
                        <xs:annotation>
                            <xs:documentation>Old Postal Code, new code, etc</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attributeGroup ref="grPostal" />
                    <xs:anyAttribute namespace="##other" />
                </xs:complexType>
            </xs:element>
            <xs:element name="PostalCodeNumberExtension" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Examples are: 1234 (USA), 1G (UK), etc.</xs:documentation>
                </xs:annotation>
                <xs:complexType mixed="true">
                    <xs:attribute name="Type">
                        <xs:annotation>
                            <xs:documentation>Delivery Point Suffix, New Postal Code, etc..</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="NumberExtensionSeparator">
                        <xs:annotation>
                            <xs:documentation>The separator between postal code number and the extension. Eg. "-"</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attributeGroup ref="grPostal" />
                    <xs:anyAttribute namespace="##other" />
                </xs:complexType>
            </xs:element>
            <xs:element name="PostTown" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>A post town is not the same as a locality. A post town can encompass a collection of (small) localities. It can also be a subpart of a locality. An actual post town in Norway is "Bergen".</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element ref="AddressLine" minOccurs="0" maxOccurs="unbounded" />
                        <xs:element name="PostTownName" minOccurs="0" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>Name of the post town</xs:documentation>
                            </xs:annotation>
                            <xs:complexType mixed="true">
                                <xs:attribute name="Type" />
                                <xs:attributeGroup ref="grPostal" />
                                <xs:anyAttribute namespace="##other" />
                            </xs:complexType>
                        </xs:element>
                        <xs:element name="PostTownSuffix" minOccurs="0">
                            <xs:annotation>
                                <xs:documentation>GENERAL PO in MIAMI GENERAL PO</xs:documentation>
                            </xs:annotation>
                            <xs:complexType mixed="true">
                                <xs:attributeGroup ref="grPostal" />
                                <xs:anyAttribute namespace="##other" />
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                    <xs:attribute name="Type">
                        <xs:annotation>
                            <xs:documentation>eg. village, town, suburb, etc</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:anyAttribute namespace="##other" />
                </xs:complexType>
            </xs:element>
            <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" />
        </xs:sequence>
        <xs:attribute name="Type">
            <xs:annotation>
                <xs:documentation>Area Code, Postcode, Delivery code as in NZ, etc</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:anyAttribute namespace="##other" />
    </xs:complexType>
</xs:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
AddressLine xal:AddressLine 0 unbounded
PostalCodeNumber xal:PostalCodeNumber 0 unbounded
PostalCodeNumberExtension xal:PostalCodeNumberExtension 0 unbounded
PostTown xal:PostTown 0 (1)
<xs:any> Allowed namespace: '##other' 0 unbounded
Collapse Child Attributes:
Name Type Default Value Use
Type xal:Type (Optional)
<anyAttribute> Allowed namespace: '##other'
Collapse Comments:
blog comments powered by Disqus