62.6.2 Using Special Characters in XML

In the XML QoS configuration file, you may sometimes want to use special characters for the name of an element. If so, escape them by surrounding the attribute value with " symbols in XML. The " symbol is a special escape character within the XML standard that represents double quotes (").

For example:

<qos_profile name="&quot;&lt;MySpecial::NameProfile&gt;&quot;">
</qos_profile>

The name of this profile is <MySpecial::NameProfile>. It contains special characters like <, > and : within its name. When not escaped, "::" is often used as a name separator when referring to an element in the XML hierarchy. (See 62.6.3 Specifying Fully Qualified Names in XML.)

You can use the same scheme when inheriting from the QoS profile in the base_name attribute or the <base_name> tag.

For example:

<qos_profile name="SpecialNameDerived"
        is_default_qos="true">
    <base_name>
        <element>Data_Library::&quot;&lt;MySpecial::NameProfile&gt;&quot;</element>
    </base_name>
</qos_profile>
 
<qos_profile name="SpecialNameDerived"
        base_name="Data_Library::&quot;&lt;MySpecial::NameProfile&gt;&quot;"
        is_default_qos="true">
</qos_profile>

In this example, the profile is contained within the Data_Library QoS Library.

This idea is applicable to all tags that can perform inheritance (any tag that has a base_name attribute or can contain the <base_name> tag).