I am using AppFabric caching in my C# application. I am attempting to cache a XmlDocument but getting the following error:
Type 'System.Xml.XmlDocument' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.
How can I resolve this issue?