<?xml version="1.0" encoding="UTF-8"?>
<xs:schema 
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:overheid="http://standaarden.overheid.nl/owms/terms/"
    xmlns:owms="http://standaarden.overheid.nl/owms/structure/"
    xmlns="http://standaarden.overheid.nl/owms/"
    targetNamespace="http://standaarden.overheid.nl/owms/" 
    elementFormDefault="qualified"
    version="X.X">

    <!-- xml:base="http://standaarden.overheid.nl/owms/xsd/" 
    xm:base not used due to issues with Xerces en XML Spy -->

    <!-- Change: 2018-08-28 
         By: Hans Overbeek
         RFC: KOOP18040216
         schemalocation had absoluut pad naar http://standaarden.overheid.nl. Validators gingen niet goed 
         om met redirect van http naar https. Relatieve adressering is bovendien te verkiezen boven absolute url. 
         Daarom absolute url gewijzigd naar relatieve url.
         (was: schemaLocation="http://standaarden.overheid.nl/owms/4.0/xsd/plugin/xml-att.xsd" -->
    
    <xs:import namespace="http://standaarden.overheid.nl/owms/structure/" schemaLocation="owms-struct-plugin.xsd"/>

    <!-- TO DO: rename 'root-elem' for your application. -->
    <xs:element name="root">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="a"/>
                <xs:element name="b"/>
                <xs:element name="c"/>
                <xs:choice>
                    <xs:element name="d"/>
                    <xs:element ref="owms:meta"/>
                </xs:choice>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

</xs:schema>
