Reputation: 5967
If I want to to label some buttons with ">" and "<" symbols, what's the correct way to escape them out in the XML file? The presence of either ">" or "&" (as in ">") produces "invalid token" errors.
Thanks in advance.
Upvotes: 37
Views: 31810
Reputation: 4349
Either specify those characters like this:
< = <
> = >
Or use a CDATA section and put those characters inside:
<![CDATA[<]]>
<![CDATA[>]]>
Upvotes: 83