Silly error. Setting the encryption/decryption aside, since that's not your question, your issue is that you encrypt your string, and then try to load that encrypted string (which is no longer XML) into an XDocument. This would give you the same result:
XDocument doc1 = XDocument.Parse("this is nonsense");