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

**URL:** <https://forum.kirupa.com/t/when-using-xml-as-a-text-source-dont-forget-this/62641>\
**Category:** flash\
**Created:** [August 30, 2004, 5:42am UTC](https://forum.kirupa.com/t/when-using-xml-as-a-text-source-dont-forget-this/62641 "2004-08-30T05:42:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GGROD](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@GGROD](https://forum.kirupa.com/u/GGROD)\
**Post date:** [August 30, 2004, 5:42am UTC](https://forum.kirupa.com/t/when-using-xml-as-a-text-source-dont-forget-this/62641/1 "2004-08-30T05:42:15Z")

</div>

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
