@@ -74,6 +74,56 @@ Notice that not setting such QoS will not affect the correct functionality of th
7474 </participant >
7575
7676
77+ .. _user_manual_participants_xml_topic_profiles :
78+
79+ Topic-name endpoint profile lookup
80+ -----------------------------------
81+ When the XML Participant creates a DataWriter or DataReader for a topic, it looks for a loaded XML profile
82+ whose name matches the topic name.
83+ If a matching profile is found, the endpoint is configured using that profile's QoS, giving the user full
84+ control over fields such as history, memory policy, transport, etc.
85+ If no matching profile exists, the endpoint falls back to default QoS with values derived from the YAML configuration.
86+
87+ By default, when a matching XML profile is found, the YAML QoS configuration is ignored for that endpoint.
88+ This behaviour can be changed by setting the xml-override tag to true in the participant configuration.
89+ When enabled, the YAML QoS values (durability, reliability, ownership, history) will override those from the XML profile.
90+
91+ .. note ::
92+
93+ Certain QoS are always enforced by the |ddsrouter | regardless of the XML profile or the ``xml-override `` setting:
94+ deadline on DataWriters (set to minimum so it matches any reader),
95+ ``autodispose_unregistered_instances `` on DataWriters (set to ``false `` to preserve dispose/unregister forwarding semantics),
96+ and ``expects_inline_qos `` on DataReaders for keyed topics.
97+
98+ The following example loads a profile named ``my_topic `` that will be automatically applied when creating
99+ endpoints for a topic of that name:
100+
101+
102+ **YAML **
103+
104+ .. code-block :: yaml
105+
106+ - name : xml_participant
107+ kind : xml
108+ xml-override : true
109+
110+
111+ **XML **
112+
113+ .. code-block :: xml
114+
115+ <dds >
116+ <profiles >
117+ <data_writer profile_name =" my_topic" >
118+ <historyMemoryPolicy >DYNAMIC</historyMemoryPolicy >
119+ </data_writer >
120+ <data_reader profile_name =" my_topic" >
121+ <historyMemoryPolicy >DYNAMIC</historyMemoryPolicy >
122+ </data_reader >
123+ </profiles >
124+ </dds >
125+
126+
77127 Repeater
78128--------
79129
0 commit comments