I'm capturing data from the user and writing it to an xml string like so:
var myXml:XML = {userEnteredText}
This is fine and dandy until the user gets cute with special characters like "& < >" etc. Illegal characters are also a problem like 0x19.
Is there are method that will sanatize my xml and encode special characters or will I have to roll my own?