If you put unescaped ampersand in XML, it is no longer valid XML.
Your two options: either output it (what your library does):
<tag>One & another</tag>
Or wrap it in CDATA:
<tag><![CDATA[One & another]]></tag>
what can be done:
xmlWriter.WriteCData("One & another");
Paolo source
share