If you ever need to manually or programmatically generate XML that will be Imported back into CRM, you need to make sure that you do not accidentally insert any literal strings that will cause the XML interpreter problems reading the file.

Here is a list of characters that must be "escaped" to prevent problems:

"<"  needs to be written as:  & lt;

">"  needs to be written as:  & gt;

"&"  needs to be written as:  & amp;

Note: There should not be a space between the ampersand and the remaining values following 'needs to be written as:'  My blog engine is interpreting them as codes if I put them together.