title: How to use xmlreader to read this xml
body: <p>My xml section is like this:</p>
  
  <pre><code>&lt;Note&gt;
  &lt;SpecialText att1="" /&gt;
  &lt;/Note&gt;
  </code></pre>
  
  <p>Or </p>
  
  <pre><code>&lt;Note&gt;
  This is a note.
  &lt;/Note&gt;
  </code></pre>
  
  <p>What I need is to use XmlReader to read the xml, but I am not sure how to determine if the innerXml is another xmlelement or is just text.</p>
  
  <p>I am doing this:</p>
  
  <pre><code>while (reader.Read())
  {
      if (reader.NodeType == XmlNodeType.Element)
      {
          switch (reader.LocalName.ToLower())
          {
              case MMLElement.SpecialText:
              //// read related attributes
              break;
          }
     }
  }
  </code></pre>
  
  <p>but how can I read the content if the thing under the Note is just text.
  If I use reader.ReadInnerXml, it will read everything, so I won't have chance to see if it is a SpecialText XmlElement or just text?</p>
  
  <p>Many Thanks</p>