Prevent Character Escape When Calling XmlWriter.WriteElementString

Posted by Ibrar Afzal on Stack Overflow See other posts from Stack Overflow or by Ibrar Afzal
Published on 2010-03-25T18:45:58Z Indexed on 2010/03/25 19:13 UTC
Read the original article Hit count: 532

Filed under:
|
|

I have a string

<entry key="Provider">Comcast Cable Communications, Inc.</entry>
<entry key="Challenged">No</entry>

I need to call the

using xmlwriter.WriteElementString I need to what the string mentioned earlier. Problem here is the xwriter.WriteElementString will escape all "<" and ">" symbols with &lt and &gt. I have checked MSDN to see if there is a way to disable it, but have not found an answer. Is there a way to disable the auto-escape features?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET