I have a string:
<entry key="Provider">Comcast Cable Communications, Inc.</entry>
<entry key="Challenged">No</entry>
I want to output this string using XmlWriter.WriteElementString(). The problem here is that XmlWriter.WriteElementString() will escape all < and > characters with < and >. I have checked MSDN to see if there is a way to disable that from happening but have not found an answer.
Is there a way to disable the auto-escaping that is occuring?
Using the XmlWriter.WriteRaw() method to output the text resolved my problem.
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