summaryrefslogtreecommitdiffstats
path: root/schemas/civicAddr.xml
blob: 3942c39f3f8dccdfae9850d6129d6b242a729f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0"?>
<xs:schema
  targetNamespace="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:ca="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
  xmlns:xml="http://www.w3.org/XML/1998/namespace"
  elementFormDefault="qualified" attributeFormDefault="unqualified">

  <xs:import namespace="http://www.w3.org/XML/1998/namespace"
             schemaLocation="http://www.w3.org/2001/xml.xsd"/>

  <xs:simpleType name="iso3166a2">
    <xs:restriction base="xs:token">
      <xs:pattern value="[A-Z]{2}"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:complexType name="caType">
    <xs:simpleContent>
      <xs:extension base="xs:token">
        <xs:attribute ref="xml:lang" use="optional"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

  <xs:element name="civicAddress" type="ca:civicAddress"/>
  <xs:complexType name="civicAddress">
    <xs:sequence>
      <xs:element name="country" type="ca:iso3166a2" minOccurs="0"/>
      <xs:element name="A1" type="ca:caType" minOccurs="0"/>
      <xs:element name="A2" type="ca:caType" minOccurs="0"/>
      <xs:element name="A3" type="ca:caType" minOccurs="0"/>
      <xs:element name="A4" type="ca:caType" minOccurs="0"/>
      <xs:element name="A5" type="ca:caType" minOccurs="0"/>
      <xs:element name="A6" type="ca:caType" minOccurs="0"/>
      <xs:element name="PRM" type="ca:caType" minOccurs="0"/>
      <xs:element name="PRD" type="ca:caType" minOccurs="0"/>
      <xs:element name="RD" type="ca:caType" minOccurs="0"/>
      <xs:element name="STS" type="ca:caType" minOccurs="0"/>
      <xs:element name="POD" type="ca:caType" minOccurs="0"/>
      <xs:element name="POM" type="ca:caType" minOccurs="0"/>
      <xs:element name="RDSEC" type="ca:caType" minOccurs="0"/>
      <xs:element name="RDBR" type="ca:caType" minOccurs="0"/>
      <xs:element name="RDSUBBR" type="ca:caType" minOccurs="0"/>
      <xs:element name="HNO" type="ca:caType" minOccurs="0"/>
      <xs:element name="HNS" type="ca:caType" minOccurs="0"/>
      <xs:element name="LMK" type="ca:caType" minOccurs="0"/>
      <xs:element name="LOC" type="ca:caType" minOccurs="0"/>
      <xs:element name="FLR" type="ca:caType" minOccurs="0"/>
      <xs:element name="NAM" type="ca:caType" minOccurs="0"/>
      <xs:element name="PC" type="ca:caType" minOccurs="0"/>
      <xs:element name="BLD" type="ca:caType" minOccurs="0"/>
      <xs:element name="UNIT" type="ca:caType" minOccurs="0"/>
      <xs:element name="ROOM" type="ca:caType" minOccurs="0"/>
      <xs:element name="SEAT" type="ca:caType" minOccurs="0"/>
      <xs:element name="PLC" type="xs:token" minOccurs="0"/>
      <xs:element name="PCN" type="ca:caType" minOccurs="0"/>
      <xs:element name="POBOX" type="ca:caType" minOccurs="0"/>
      <xs:element name="ADDCODE" type="ca:caType" minOccurs="0"/>
      <xs:any namespace="##other" processContents="lax"
              minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##any" processContents="lax"/>
  </xs:complexType>
</xs:schema>
OpenPOWER on IntegriCloud