title: XMLTextReader is created but XslCompiledTransform.Transform fails with invalid character
body: <p>My Code:</p>
  
  <pre><code>using (XmlTextReader inputReader = new XmlTextReader(xml, XmlNodeType.Document, new XmlParserContext(null, null, "en", XmlSpace.Default)))
          {
              XsltArgumentList arglist = new XsltArgumentList();
              GetXSLT().Transform(inputReader, arglist, outputStream);
          }
  </code></pre>
  
  <p>The <code>XmlTextReader</code> is created fine, inside the XML there is an entity reference for a vertical tab (<code>&amp;#xB;</code>)</p>
  
  <p>The line that errors is the call to Transform.  It says that there is an invalid XML character (the vertical tab of course).</p>
  
  <p>I've tried using the approach referenced in the following article:<br>
  <a href="https://stackoverflow.com/questions/8331119/escape-invalid-xml-characters-in-c-sharp">Escape invalid XML characters in C#</a></p>
  
  <p>My question is: how can I remove or ignore the invalid characters using the .NET framework like the link states?</p>
  
  <p>note: in a way that doesn't involve hard coding a list of entity references to replace (I'm already doing this and it is horrible and I feel bad, and I should)</p>