My application needs to work with several small Xml fragments. I want to type them verbatim, but the problem with using verbatim string literals is that I need to escape the actual quote inside Xml with another quote for compiler to understand.
On the other hand, if I want to use Xml as a resource, then for each of the several Xml fragments, I need to create a separate resource file. Ideally what I want is a mechanism where:
1. I can store all the Xml fragments in a single file, with separate name or identifier for each Xml fragment, and
2. I can type the Xml as it is without escaping quotes and I can type them in multi line with indenting for easier readability
Is there any mechanism it can be achieved?