<?xml version="1.0"?>
<schema targetNamespace="http://ws.infotorg.no/xml/Skattedirektoratet/LikningsopplysningerPrivat/2018-06-01/LikningsopplysningerPrivat.xsd" 
    xmlns:tns="http://ws.infotorg.no/xml/Skattedirektoratet/LikningsopplysningerPrivat/2018-06-01/LikningsopplysningerPrivat.xsd" 
    xmlns:feil="http://ws.infotorg.no/xml/Feil/Feil.xsd" 
    xmlns:lknp="http://ws.infotorg.no/xml/Skattedirektoratet/LikningsopplysningerPrivat/2018-06-01/include/Likningsdata.xsd" 
    xmlns="http://www.w3.org/2001/XMLSchema">

    <annotation>
        <documentation xml:lang="no">
            Datatyper for LikningsopplysningerPrivat
            © 2019 ErgoGroup AS
            Forfatter: Thomas Flatmo &lt;thomas.flatmo@evry.com&gt;
        </documentation>
    </annotation>
    
    <import namespace="http://ws.infotorg.no/xml/Skattedirektoratet/LikningsopplysningerPrivat/2018-06-01/include/Likningsdata.xsd" schemaLocation="https://ws-test.infotorg.no/xml/Skattedirektoratet/LikningsopplysningerPrivat/2018-06-01/include/Likningsdata.xsd"/>
    <import namespace="http://ws.infotorg.no/xml/Feil/Feil.xsd" schemaLocation="https://ws-test.infotorg.no/xml/Feil/Feil.xsd"/>

    <element name="hentPersonligLand" type="tns:hentPersonligLand"/>
    <element name="hentPersonligFylke" type="tns:hentPersonligFylke"/>
    <element name="hentPersonligKommune" type="tns:hentPersonligKommune"/>
    <element name="hentLikningsAargangerDato"/>
    
    <complexType name="hentPersonligLand">
        <sequence>
            <element name="land" minOccurs="1" type="string"/>
            <element name="inntektsaar" minOccurs="1">
              <simpleType>
                <restriction base="string">
                  <length value="4"/>
                </restriction>
              </simpleType>
            </element>
        </sequence>
    </complexType>

    <complexType name="hentPersonligFylke">
        <sequence>
            <element name="fylkesnr" minOccurs="1" type="string"/>
            <element name="inntektsaar" minOccurs="1">
              <simpleType>
                <restriction base="string">
                  <length value="4"/>
                </restriction>
              </simpleType>
            </element>
        </sequence>
    </complexType>

    <complexType name="hentPersonligKommune">
        <sequence>
            <element name="kommunenr" minOccurs="1" type="string"/>
            <element name="inntektsaar" minOccurs="1">
              <simpleType>
                <restriction base="string">
                  <length value="4"/>
                </restriction>
              </simpleType>
            </element>
        </sequence>
    </complexType>

    <element name="PersonligLand" type="lknp:LikningPersonlig"/>

    <element name="PersonligFylke" type="lknp:LikningPersonlig"/>

    <element name="PersonligKommune" type="lknp:LikningPersonlig"/>

    <element name="LikningsAargangerDato" type="lknp:LikningsAargangerDato"/>

</schema>
