<?xml version="1.0" encoding="UTF-8"?><schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:app="http://skjema.geonorge.no/SOSI/produktspesifikasjon/Ambassader/B20200515E" xmlns:gml="http://www.opengis.net/gml/3.2" elementFormDefault="qualified" targetNamespace="http://skjema.geonorge.no/SOSI/produktspesifikasjon/Ambassader/B20200515E" version="B20200515E">
  <annotation>
    <documentation>Datasett: Ambassader
Formål: Forsvaret/ NGF
Versjon: engelsk</documentation>
  </annotation>
  <import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/>
  <!--XML Schema document created by ShapeChange - http://shapechange.net/-->
  <simpleType name="ClassificationCodeType">
    <annotation>
      <documentation>Five different classification; Each classification has unique restrictions</documentation>
    </annotation>
    <union memberTypes="app:ClassificationCodeEnumerationType app:ClassificationCodeOtherType"/>
  </simpleType>
  <simpleType name="ClassificationCodeEnumerationType">
    <annotation>
      <documentation>Five different classification; Each classification has unique restrictions</documentation>
    </annotation>
    <restriction base="string">
      <enumeration value="NATO UNCLASSIFIED">
        <annotation>
          <documentation>NATO unclassified - Free for all.</documentation>
        </annotation>
      </enumeration>
      <enumeration value="NATO RESTRICTED">
        <annotation>
          <documentation>NATO Restricted - Lowest security rating of information. There is no need for clearance at this level, but you must authorize and sign a Declaration of Confidentiality to access the LIMITED / NATO RESTRICTED.</documentation>
        </annotation>
      </enumeration>
      <enumeration value="NATO CONFIDENTIAL">
        <annotation>
          <documentation>NATO Confidential - The lowest level of security clearance in NATO.</documentation>
        </annotation>
      </enumeration>
      <enumeration value="NATO SECRET">
        <annotation>
          <documentation>NATO Secret - The second highest level of security clearance in NATO.</documentation>
        </annotation>
      </enumeration>
      <enumeration value="COSMIC TOP SECRET">
        <annotation>
          <documentation>Cosmic Top Secret -The highest level of security clearance in NATO.</documentation>
        </annotation>
      </enumeration>
    </restriction>
  </simpleType>
  <simpleType name="ClassificationCodeOtherType">
    <restriction base="string">
      <pattern value="other: \w{2,}"/>
    </restriction>
  </simpleType>
  <element name="ContactInformation" substitutionGroup="gml:AbstractObject" type="app:ContactInformationType">
    <annotation>
      <documentation>Contact information for day care employees.</documentation>
    </annotation>
  </element>
  <complexType name="ContactInformationType">
    <sequence>
      <element minOccurs="0" name="telephoneNumber" type="string">
        <annotation>
          <documentation>Telephone number for contact person.</documentation>
        </annotation>
      </element>
      <element minOccurs="0" name="emailAddress" type="string">
        <annotation>
          <documentation>E-mail address for contact person.</documentation>
        </annotation>
      </element>
    </sequence>
  </complexType>
  <complexType name="ContactInformationPropertyType">
    <sequence>
      <element ref="app:ContactInformation"/>
    </sequence>
  </complexType>
  <element name="Embassies" substitutionGroup="app:GeneralProperties" type="app:EmbassiesType">
    <annotation>
      <documentation>the name of the embassies and consulates</documentation>
    </annotation>
  </element>
  <complexType name="EmbassiesType">
    <complexContent>
      <extension base="app:GeneralPropertiesType">
        <sequence>
          <element name="position" type="gml:PointPropertyType">
            <annotation>
              <documentation>Location where the object exists.</documentation>
            </annotation>
          </element>
          <element name="name" type="string">
            <annotation>
              <documentation>name of the embassies</documentation>
            </annotation>
          </element>
          <element name="nation" type="string">
            <annotation>
              <documentation>The gives state of the embassies and consulates</documentation>
            </annotation>
          </element>
          <element name="diplomatBuilding" type="string">
            <annotation>
              <documentation>type of embassies building</documentation>
            </annotation>
          </element>
          <element minOccurs="0" name="contactInformation" type="app:ContactInformationPropertyType">
            <annotation>
              <documentation>Embassies and conulates contact information.</documentation>
            </annotation>
          </element>
          <element minOccurs="0" name="postalAddress" type="app:StreetAddressPropertyType">
            <annotation>
              <documentation>Feature type contains information tied to embassies and consulates locations.</documentation>
            </annotation>
          </element>
        </sequence>
      </extension>
    </complexContent>
  </complexType>
  <complexType name="EmbassiesPropertyType">
    <sequence minOccurs="0">
      <element ref="app:Embassies"/>
    </sequence>
    <attributeGroup ref="gml:AssociationAttributeGroup"/>
    <attributeGroup ref="gml:OwnershipAttributeGroup"/>
  </complexType>
  <element abstract="true" name="GeneralProperties" substitutionGroup="gml:AbstractFeature" type="app:GeneralPropertiesType">
    <annotation>
      <documentation>Abstract object used as a container for properties originating from SOSI-chapter 1.</documentation>
    </annotation>
  </element>
  <complexType abstract="true" name="GeneralPropertiesType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="identification" type="app:IdentificationPropertyType">
            <annotation>
              <documentation>Unique identifier of an object that can be used by external applications as a reference to the object. The identifier is managed by the responsible producer/administrator of the data-set.</documentation>
            </annotation>
          </element>
          <element name="origin" type="string">
            <annotation>
              <documentation>Origin of the data-set.
Reference to copyright material, source material, organization/publishing source.</documentation>
            </annotation>
          </element>
          <element name="dataWithdrawalDate" type="dateTime">
            <annotation>
              <documentation>date of extraction from a database Note: Different from Copy Date in that you do not distinguish whether it is extraction from an original database or a copy database.</documentation>
            </annotation>
          </element>
          <element minOccurs="0" name="dataCaptureDate" type="dateTime">
            <annotation>
              <documentation>Date when the object was registered/observed/measured in the terrain/environment.</documentation>
            </annotation>
          </element>
          <element minOccurs="0" name="updateDate" type="dateTime">
            <annotation>
              <documentation>Date for the production of the actual data files.</documentation>
            </annotation>
          </element>
          <element name="latitude" type="double">
            <annotation>
              <documentation>Description of the object's spatial position, according to the geographic coordinate latitude.</documentation>
            </annotation>
          </element>
          <element name="longitude" type="double">
            <annotation>
              <documentation>Description of the object's spatial position, according to the geographic coordinate longitude.</documentation>
            </annotation>
          </element>
          <element name="mgrs" type="string">
            <annotation>
              <documentation>MGRS (Military grid reference system), is a global system used by NATO to specify a map reference. Showing a area, not a point.</documentation>
            </annotation>
          </element>
          <element name="classification" type="app:ClassificationCodeType">
            <annotation>
              <documentation>Classification degree of information that has been given a security level. Defines distribution of the dataset.</documentation>
            </annotation>
          </element>
        </sequence>
      </extension>
    </complexContent>
  </complexType>
  <complexType name="GeneralPropertiesPropertyType">
    <sequence minOccurs="0">
      <element ref="app:GeneralProperties"/>
    </sequence>
    <attributeGroup ref="gml:AssociationAttributeGroup"/>
    <attributeGroup ref="gml:OwnershipAttributeGroup"/>
  </complexType>
  <element name="Identification" substitutionGroup="gml:AbstractObject" type="app:IdentificationType">
    <annotation>
      <documentation>Identification: Unique identifier of an object that can be used by external applications as a reference to the object. The identifier is managed by the responsible producer/administrator of the data-set.</documentation>
    </annotation>
  </element>
  <complexType name="IdentificationType">
    <sequence>
      <element name="localId" type="string">
        <annotation>
          <documentation>localId: Local identifier, unique within it's namespace - no other objects share the same identifier.</documentation>
        </annotation>
      </element>
      <element name="namespace" type="string">
        <annotation>
          <documentation>namespace: Namespace uniquely identifying the data source of the object.</documentation>
        </annotation>
      </element>
      <element name="versionId" type="string">
        <annotation>
          <documentation>versionId: Identification of a certain version of a geographically referenced object.
Maximum length is 25 characters. This is in line with ISO 8601. Example: 2007-02-12T12:12:12+05:30.</documentation>
        </annotation>
      </element>
    </sequence>
  </complexType>
  <complexType name="IdentificationPropertyType">
    <sequence>
      <element ref="app:Identification"/>
    </sequence>
  </complexType>
  <element name="StreetAddress" substitutionGroup="gml:AbstractObject" type="app:StreetAddressType">
    <annotation>
      <documentation>Identification of street address.</documentation>
    </annotation>
  </element>
  <complexType name="StreetAddressType">
    <sequence>
      <element minOccurs="0" name="streetName" type="string">
        <annotation>
          <documentation>Street name, number and letter.</documentation>
        </annotation>
      </element>
      <element minOccurs="0" name="postCode" type="string">
        <annotation>
          <documentation>Four digit code that identifies a post code area.

Note: The first digit designates a post zone, the two first digits designate a post region, the first three digits designate a post area and all four digits designate a post code area/location.</documentation>
        </annotation>
      </element>
      <element minOccurs="0" name="postTown" type="string">
        <annotation>
          <documentation>Name of the post code area in accordance with the mail service's own lists.</documentation>
        </annotation>
      </element>
    </sequence>
  </complexType>
  <complexType name="StreetAddressPropertyType">
    <sequence>
      <element ref="app:StreetAddress"/>
    </sequence>
  </complexType>
</schema>
