title: How to write '&' in xml?
body: <p>I am using xmlTextWriter to create the xml.</p>
  
  <pre><code>writer.WriteStartElement("book"); 
  writer.WriteAttributeString("author", "j.k.rowling"); 
  writer.WriteAttributeString("year", "1990");
  writer.WriteString("&amp;");
  writer.WriteEndElement();
  </code></pre>
  
  <p>But now i need to write '&amp;' but xmlTextWriter will automatically write this one as "&amp;amp";
  So is there any work around to do this?  </p>
  
  <p>I am creating xml by reading the doc file.So if I read "-" then in xml i need to write "&amp;ndash";.So while writing it's written as "&amp;amp";ndash.</p>
  
  <p>So, for example, if I am trying to write a node with the text <code>good-bad</code>, I actually need to write my XML such as <code>&lt;node&gt;good&amp;ndash;bad&lt;/node&gt;</code>.  This is a requirement of my project.</p>