<?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="https://www.omg.org/spec/DDS-XML/20260301/dds-xml_deployment_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:element name="node_library" type="nodeLibrary" />
            <xs:element name="deployment_library" type="deploymentLibrary" />
        </xs:choice>
    </xs:complexType>

</xs:schema>
