title: How to read xml string ignoring header?
body: <p>I want to read a xml string ignoring the header and the comments.</p>
  
  <p>To ignore the comments it's simples and I found a solution <a href="https://stackoverflow.com/questions/1874132/how-to-remove-all-comment-tags-from-xmldocument">here</a>.
  But I'm not finding any solution to ignore the header.</p>
  
  <p>Let me give an example:</p>
  
  <p>Consider this xml:
  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
  &lt;!-- Some comments --&gt;
  &lt;Tag Attribute="3"&gt;
      ...
  &lt;/Tag&gt;
  </code></pre>
  
  <p>I want to read the xml to a string obtaining just the element "Tag" and others elements but withou the "xml version" and the comments.</p>
  
  <p>The element "Tag" is only an example. Could exist many others.</p>
  
  <p>So, I want only this:</p>
  
  <pre><code>&lt;Tag Attribute="3"&gt;
      ...
  &lt;/Tag&gt;
  </code></pre>
  
  <p>The code that I've come so far:</p>
  
  <pre class="lang-cs prettyprint-override"><code>XmlReaderSettings settings = new XmlReaderSettings();
  settings.IgnoreComments = true;
  XmlReader reader = XmlReader.Create("...", settings);
  xmlDoc.Load(reader);
  </code></pre>
  
  <p>And I'm not finding anything on XmlReaderSettings to do that.</p>
  
  <p>Do I need to go node by node choosing only the ones I want? This setting does not exist?</p>
  
  <p><strong>EDIT 1:</strong>
  Just to resume my problem. I need the contents of the xml to use in a CDATA of a WebService. When I'm sending comments or xml version, I'm getting an specific error of that part of xml. So I assume that when I read the xml without the version, header and comments I'll be good to go.</p>