I need to put double quotes in configuration property Property1
<Seection Name Propety1="" .../>
I believe the proper way to encode quotes in XML is via "
See this answer: How do I escape double quotes in attributes in an XML String in T-SQL?
The same would go for any other 'special' characters you wish to include as data. Essentially, you should use the same encoding you would use in HTML attributes.
You could html encode the value when you add it to the configuration file. This should ensure any special character will be handled correctly in the xml and be returned as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With