<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <!-- definition of attributes -->
  <xs:attribute name="navn" type="xs:string"/>
  <xs:attribute name="felter" type="xs:integer"/>
  <xs:attribute name="x" type="xs:integer"/>
  <xs:attribute name="y" type="xs:integer"/>
  <xs:attribute name="felt" type="xs:integer"/>
  <!-- definition of complex type elements -->
  <xs:element name="start">
    <xs:complexType>
      <xs:attribute ref="x"/>
      <xs:attribute ref="y"/>
    </xs:complexType>
  </xs:element>  
  <xs:element name="slut">
    <xs:complexType>
      <xs:attribute ref="x"/>
      <xs:attribute ref="y"/>
    </xs:complexType>
  </xs:element>  
  <xs:element name="ramt">
    <xs:complexType>
      <xs:attribute ref="felt"/>
    </xs:complexType>
  </xs:element>  
  <xs:element name="skib">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="start"/>
        <xs:element ref="slut"/>
        <xs:element ref="ramt"/>
      </xs:sequence>
      <xs:attribute ref="navn"/>
      <xs:attribute ref="felter"/>
    </xs:complexType>
  </xs:element>
</xs:schema>