title: How do I create a XmlTextReader that ignores Namespaces and does not check characters
body: <p>I want to use a <code>XmlTextReader</code> that ignores Namespaces and does not check characters. To ignore namespaces I can set the property <code>Namespaces=false</code> and to not check characters I can use the <code>XmlReaderSettings.CheckCharacters = false</code>. </p>
  
  <p>I tried to create the <code>XmlTextReader</code> using it constructors, but that does not allow me to pass in a configured <code>XmlReaderSettings</code>. The property <code>Settings</code> is readonly so that I cannot set it after construction.</p>
  
  <pre><code>XmlTextReader reader = new XmlTextReader(gzs) { Namespaces = false};
  reader.Settings = new XmlReaderSettings { CheckCharacters = false}; // readonly
  </code></pre>
  
  <p>Using the static method <code>Create()</code> of the base class <code>XmlReader</code> I can pass in the <code>XmlReaderSettings</code>, but the method returns a <code>XmlTextReaderImpl</code> and that has no property <code>Namespace</code> to set and it cannot be cast to <code>XmlTextReader</code>.</p>
  
  <pre><code>var settings = new XmlReaderSettings { CheckCharacters = false}; 
  var reader = XmlTextReader.Create(gzs, settings); 
  XmlTextReader textReader = reader as XmlTextReader  // not possible
  </code></pre>
  
  <p>So how do I create such a XmlTextReader? Is it even possible? Are there any properties on <code>XmlReaderSettings</code> to ignore namespaces?</p>