When using XML as a text source don't forget this!

If using XML as a text source and you have a need to use any of the following special characters, then read this.

For example the text I want to display:
Rod’s new site “I Rule” is awesome.

In you XML it needs to be as follows:
Rod[color=Red]'[/color]s new site [color=Red]"[/color]I Rule[color=Red]"[/color] is awesome.

There are 5 predefined entity references in XML:

< < less than
> > greater than
& & ampersand
’ ’ apostrophe
" " quotation mark

Entity references always start with the “&” character and end with the “;” character.

Note: Only the characters “<” and “&” are strictly illegal in XML. Apostrophes, quotation marks and greater than signs are legal, but it is a good habit to replace them.

Enjoy!

Rod