I am getting the follow error, but not sure how to resolve it:
System.Xml.XmlException: Reference to undeclared entity 'AMP'. Line 88, position 68.
I found this section in the xml:
<AddressData city="TYNE & WEAR">
<addressLine>123 Orange Rd.</addressLine>
<addressLine></addressLine>
</AddressData>
The xml is actually being created dynamically, but when I stepped through it, I noticed that it is coming back as Tyne & Wear, but it is being uppercased which I have no idea why. There is a utility routing called XmlEncode that does the following, but not sure it would cover the above scenario.
s.Replace("&", "&").Replace("<", "<").Replace(">", ">").Replace("'", "'").Replace("""", """)