The character >
is in fact allowed within xml without escaping, but the character sequence ]]>
is not.
You MAY escape any >
character as >
, but you MUST do so if it is part of the above sequence, i.e., the sequence ]]>
(or the equivalent with a character reference) is the correct way to represent that character sequence in xml when it's not used as the ending mark for a CDATA section.