<p>I'm writing a string containing some XML via System.Xml.XmlWriter.  I'm stuck using WriteString(), and from the documentation:</p>

<blockquote>
  <p>WriteString does the following:
  The characters &amp;, &lt;, and > are replaced with &amp;amp;, &amp;lt;, and &amp;gt;, respectively.</p>
</blockquote>

<p>I'd like this to stop, but I can't seem to find any XmlWriterSettings properties to control this behavior.  What are some workarounds?  Thanks!</p>

<p>David</p>

[{'answer_id': 66497, 'author': 'Danimal', 'author_id': 2757, 'author_profile': 'https://Stackoverflow.com/users/2757', 'pm_score': 1, 'selected': False, 'text': "<blockquote>\n  <p>I'm stuck using WriteString(),</p>\n</blockquote>\n\n<p>I think that's the root of your problem. Can you explain more about your reason you're stuck using WriteString? My gut is you're using the wrong method for what you want to do</p>\n"}, {'answer_id': 67003, 'author': 'Haoest', 'author_id': 10088, 'author_profile': 'https://Stackoverflow.com/users/10088', 'pm_score': 2, 'selected': False, 'text': "<p>Try wrapping your real content between the CDATA tags:</p>\n\n<p>&lt;![CDATA[  <strong>it's my content</strong> ]]&gt;</p>\n"}, {'answer_id': 67382, 'author': 'Mike Dimmick', 'author_id': 6970, 'author_profile': 'https://Stackoverflow.com/users/6970', 'pm_score': 2, 'selected': False, 'text': "<p>WriteString writes your content as a literal, and &amp;, &lt; and > are illegal in XML text, so they are escaped.</p>\n\n<p>If the other end is not unescaping them, that's where the problem lies.</p>\n\n<p>If you want to write unescaped XML, use WriteRaw.</p>\n"}]
['https://Stackoverflow.com/questions/66479', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9858/']