XML elements can contain text content that represents data values. Because XML uses certain characters as part of its syntax, special characters such as <, >, and & must be written using escape sequences.

Example: Escaped characters

<note>
    <text>5 &lt; 10 and 10 &gt; 5</text>
</note>

Here, &lt; and &gt; are used to represent the characters < and >.