Returning an XML Encoded String in .NET

added by DotNetKicks
12/3/2018 3:39:42 PM

2 Kicks, 2233 Views

XML is not as popular as it once was, but there's still a lot of XML based configuration and data floating around today. Today I ran into a recurring issue where I needed to convert a string to a properly encoded XML string.