title: Add Ampersand to XmlElement
body: <p>I am creating several XmlElements used in a larger XML Document. </p>
  
  <pre><code>XmlElement thisElement = xmlSearchParameters.CreateElement("value");
  thisElement.InnerXml = this.searchParameters[key];
  </code></pre>
  
  <p>This works well for most instances, but if the value of searchParameters[key] happens to include an &amp; symbol, I get one of the two following errors:</p>
  
  <p>Unexpected end of file has occurred. Line 1, position 1. - if value is ONLY &amp;</p>
  
  <p>An error occurred while parsing EntityName. Line 1, position 7. - if value contains &amp; mixed with other text.</p>
  
  <p>What is the prefered way of including &amp; and any other special symbols in an XmlElement? I suspect there must be a better way than just replacing &amp; with something else (some sort of XmlFormat method???).</p>