What is the proper way to escape characters in Flash when using XML?
Its important to realize that you need to escape, or encode, certain characters when placing them in your XML. As youve seen already, you can use CDATA to pull this string data in directly, or you can avoid that by using charCodes. These are strings that represent characters and follow the format of < (this would display the < character). You can determine the proper charCode for any symbol or letter (especially useful for foreign letters and symbols) by using the following code: charTest = <; trace (chartest.charCodeAt(0)); This will output the value 60, so the entire charCode for the character < would be <.