Search code examples
asp.netxmlencodingresx

Can I store an xml string in a resources file (.resx), without it getting encoded with < and >?


In Visual Studio, I can put an xml string into the "Value" field. However, when I open up the actual .resx file, I see that it has been encoded to have < and >. I want the .resx file to be able to be edited manually without using the Visual Studio UI, and obviously this is messy with the > and <s. Could I somehow do this without the encoding?


Solution

  • My solution for the time being: use JSON for the value.