<?xml version="1.0"?>
<schema targetNamespace="http://ws.infotorg.no/xml/EurotaxGlass/Bruktbilverdi/2012-08-27/Bruktbilverdi.xsd"
    xmlns:tns="http://ws.infotorg.no/xml/EurotaxGlass/Bruktbilverdi/2012-08-27/Bruktbilverdi.xsd"
    xmlns:feil="http://ws.infotorg.no/xml/Feil/Feil.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema">

    <annotation>
        <documentation xml:lang="no">
            Datatyper for Bruktbilverdi

            © 2008 ErgoGroup AS
            Forfatter: Øivind Stensrud &lt;oivind.stensrud@ergogroup.no&gt;
        </documentation>
    </annotation>

    <import
        namespace="http://ws.infotorg.no/xml/Feil/Feil.xsd"
        schemaLocation="https://ws-test.infotorg.no/xml/Feil/Feil.xsd"/>

   <element name="hentMotorvognopplysninger" type="tns:hentMotorvognopplysninger"/>
   <complexType name="hentMotorvognopplysninger">
        <sequence>
            <element name="regnr" type="string" maxOccurs="1"/>
            <element name="kmstand" type="string" minOccurs="0" maxOccurs="1"/>
            <element name="utstyrstyper" minOccurs="0" maxOccurs="1">
                <complexType>
                    <sequence>
                        <element name="awd" type="boolean" minOccurs="0" maxOccurs="1"/>
                        <element name="aut" type="boolean" minOccurs="0" maxOccurs="1"/>
                        <element name="coupe" type="boolean" minOccurs="0" maxOccurs="1"/>
                        <element name="klima" type="boolean" minOccurs="0" maxOccurs="1"/>
                        <element name="nav" type="boolean" minOccurs="0" maxOccurs="1"/>
                        <element name="park" type="boolean" minOccurs="0" maxOccurs="1"/>
                        <element name="skinn" type="boolean" minOccurs="0" maxOccurs="1"/>
                        <element name="st" type="boolean" minOccurs="0" maxOccurs="1"/>
                        <element name="xenon" type="boolean" minOccurs="0" maxOccurs="1"/>
                        <element name="mfratt" type="boolean" minOccurs="0" maxOccurs="1"/> 
                        <element name="blue" type="boolean" minOccurs="0" maxOccurs="1"/>
                        <element name="sport" type="boolean" minOccurs="0" maxOccurs="1"/>
                    </sequence> 
                </complexType>
            </element>
        </sequence>
    </complexType>

    <element name="Motorvognopplysninger" type="tns:Motorvognopplysninger"/>
    <complexType name="Motorvognopplysninger">
        <sequence>
            <element name="service_output" type="tns:service_output"/>
        </sequence>
    </complexType>

    <complexType name="service_output">
        <sequence>
            <choice>
                <element name="motorvognopplysninger" type="tns:motorvognopplysninger"/>
                <element name="error" type="tns:error"/>
            </choice>
        </sequence>
        <attribute name="error" use="required" type="string"/>
        <attribute name="name" use="required" type="string"/>
    </complexType>

    <complexType name="error">
        <simpleContent>
            <extension base="string">
                <attribute name="no" use="required" type="string"/>
            </extension>
        </simpleContent>
    </complexType>

    <complexType name="motorvognopplysninger">
        <sequence>
            <element name="bol_data" type="tns:bol_data" minOccurs="0" maxOccurs="unbounded"/>
            <element name="mvr_data" type="tns:mvr_data" minOccurs="0" maxOccurs="unbounded"/>
        </sequence>
        <attribute name="regnr" use="required" type="string"/>
    </complexType>

    <complexType name="bol_data">
        <sequence minOccurs="0">
            <element name="merke" type="string"/>
            <element name="modell" type="string"/>
            <element name="hk" type="string"/>
            <element name="slagvolum" type="string"/>
            <element name="egenvekt" type="string"/>
            <element name="snitt_km" type="string"/>
            <element name="snitt_takst" type="string"/> 
            <element name="naa_km" type="string"/>
            <element name="naa_takst" type="string"/>
            <element name="pristillegg" type="string"/>
            <element name="sidenr" type="string"/>
            <any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
        </sequence>
    </complexType>

    <complexType name="mvr_data">
        <sequence>
            <element name="understellnr" type="string"/>
            <element name="reg_aar" type="string"/>
            <element name="typegodkjenningsnr" type="string"/>
            <element name="reg_forstegang" type="string"/>
            <element name="bruktimportert" type="string"/>
            <element name="farge" type="string"/>
            <element name="euhovednr" type="string"/>
            <element name="rammekarosseri" type="string"/>
            <element name="motorytelse" type="string"/>
            <element name="merke" type="string"/> 
            <element name="kjtgrp" type="string"/>
            <element name="omdreininger" type="string"/>
            <element name="tilhvekt" type="string"/>
            <element name="ytelsesmaal" type="string"/>
            <element name="slagvolum" type="string"/>
            <element name="drivstoff" type="string"/>
            <element name="stddekk_foran" type="string"/>
            <element name="stddekk_bak" type="string"/>
            <element name="stdfelg_foran" type="string"/>
            <element name="stdfelg_bak" type="string"/>
            <element name="girkasse" type="string"/>
            <element name="modell" type="string"/>
            <element name="type" type="string"/>
            <element name="standstoey" type="string"/>
            <element name="totalvekt" type="string"/>
            <element name="egenvekt" type="string"/>
            <element name="drivende_hjul" type="string"/>
            <element name="pkk_siste" type="string"/>
            <element name="pkk_neste" type="string"/>
            <element name="co2" type="string"/>
            <element name="merkenavn" type="string"/>
            <any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
        </sequence>
    </complexType>
</schema>
