civicAddr.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0"?>
  2. <xs:schema
  3. targetNamespace="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
  4. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  5. xmlns:ca="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
  6. xmlns:xml="http://www.w3.org/XML/1998/namespace"
  7. elementFormDefault="qualified" attributeFormDefault="unqualified">
  8. <xs:import namespace="http://www.w3.org/XML/1998/namespace"
  9. schemaLocation="http://www.w3.org/2001/xml.xsd"/>
  10. <xs:simpleType name="iso3166a2">
  11. <xs:restriction base="xs:token">
  12. <xs:pattern value="[A-Z]{2}"/>
  13. </xs:restriction>
  14. </xs:simpleType>
  15. <xs:complexType name="caType">
  16. <xs:simpleContent>
  17. <xs:extension base="xs:token">
  18. <xs:attribute ref="xml:lang" use="optional"/>
  19. </xs:extension>
  20. </xs:simpleContent>
  21. </xs:complexType>
  22. <xs:element name="civicAddress" type="ca:civicAddress"/>
  23. <xs:complexType name="civicAddress">
  24. <xs:sequence>
  25. <xs:element name="country" type="ca:iso3166a2" minOccurs="0"/>
  26. <xs:element name="A1" type="ca:caType" minOccurs="0"/>
  27. <xs:element name="A2" type="ca:caType" minOccurs="0"/>
  28. <xs:element name="A3" type="ca:caType" minOccurs="0"/>
  29. <xs:element name="A4" type="ca:caType" minOccurs="0"/>
  30. <xs:element name="A5" type="ca:caType" minOccurs="0"/>
  31. <xs:element name="A6" type="ca:caType" minOccurs="0"/>
  32. <xs:element name="PRM" type="ca:caType" minOccurs="0"/>
  33. <xs:element name="PRD" type="ca:caType" minOccurs="0"/>
  34. <xs:element name="RD" type="ca:caType" minOccurs="0"/>
  35. <xs:element name="STS" type="ca:caType" minOccurs="0"/>
  36. <xs:element name="POD" type="ca:caType" minOccurs="0"/>
  37. <xs:element name="POM" type="ca:caType" minOccurs="0"/>
  38. <xs:element name="RDSEC" type="ca:caType" minOccurs="0"/>
  39. <xs:element name="RDBR" type="ca:caType" minOccurs="0"/>
  40. <xs:element name="RDSUBBR" type="ca:caType" minOccurs="0"/>
  41. <xs:element name="HNO" type="ca:caType" minOccurs="0"/>
  42. <xs:element name="HNS" type="ca:caType" minOccurs="0"/>
  43. <xs:element name="LMK" type="ca:caType" minOccurs="0"/>
  44. <xs:element name="LOC" type="ca:caType" minOccurs="0"/>
  45. <xs:element name="FLR" type="ca:caType" minOccurs="0"/>
  46. <xs:element name="NAM" type="ca:caType" minOccurs="0"/>
  47. <xs:element name="PC" type="ca:caType" minOccurs="0"/>
  48. <xs:element name="BLD" type="ca:caType" minOccurs="0"/>
  49. <xs:element name="UNIT" type="ca:caType" minOccurs="0"/>
  50. <xs:element name="ROOM" type="ca:caType" minOccurs="0"/>
  51. <xs:element name="SEAT" type="ca:caType" minOccurs="0"/>
  52. <xs:element name="PLC" type="xs:token" minOccurs="0"/>
  53. <xs:element name="PCN" type="ca:caType" minOccurs="0"/>
  54. <xs:element name="POBOX" type="ca:caType" minOccurs="0"/>
  55. <xs:element name="ADDCODE" type="ca:caType" minOccurs="0"/>
  56. <xs:any namespace="##other" processContents="lax"
  57. minOccurs="0" maxOccurs="unbounded"/>
  58. </xs:sequence>
  59. <xs:anyAttribute namespace="##any" processContents="lax"/>
  60. </xs:complexType>
  61. </xs:schema>