title: XmlTextReader & XmlNodeTypes
body: <p>I'm working with the XmlTextReader and use a switch to determine which operations I want to do depening on the XmlNodeType.</p>
  
  <pre><code>switch(xmlTextReader.NodeType)
  {
      case XmlNodeType.Element
      {
          ...
          break;
      }
      ...
  }
  </code></pre>
  
  <p>and so on...</p>
  
  <p>Now I have a small problem. As far as I know, </p>
  
  <pre><code>XmlNodeType.Element 
  </code></pre>
  
  <p>matches any node with the following syntax </p>
  
  <pre><code>&lt;xxx&gt; 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>XmlNodeType.EndElement 
  </code></pre>
  
  <p>matches </p>
  
  <pre><code>&lt;/xxx&gt; 
  </code></pre>
  
  <p>But what XmlNodeType matches </p>
  
  <pre><code>&lt;xxx/&gt;
  </code></pre>
  
  <p>?</p>