In text and attribute values, you need to escape ASCII characters like the angle brackets (). Most common encodings are:
" " < < > > & &
For example, the text:
"Me, Myself & <I>"
should be encoded in XML as:
"Me, myself & <I>"
Alternatively, you may escape the full string by enclosing it with the CDATA (character data) section. A CDATA section begins with the nine-character delimiter ![CDATA[ and ends with the delimiter ]]:
<![CDATA["Me, Myself & <I>"]]>The only thing that can not go inside the CDATA section is the end-delimiter itself.