<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           elementFormDefault="qualified"
           attributeFormDefault="unqualified">

    <!-- Include all the necessary building blocks -->
    
    <xs:include schemaLocation="http://www.omg.org/spec/DDS-XML/20180501/dds-xml_application_definitions_nonamespace.xsd" />
    
    <!-- Define DDS top-level element -->
    <xs:complexType name="ddsSystem">
        <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:element name="types" type="typeLibrary" />
            <xs:element name="qos_library" type="qosLibrary" />                            
            <xs:element name="domain_library" type="domainLibrary" />
            <xs:element name="domain_participant_library" 
                        type="domainParticipantLibrary" />
            <xs:element name="application_library" 
                        type="applicationLibrary" />
        </xs:choice>
    </xs:complexType>

</xs:schema>
