title: How to check for CML child nodes in C#
body: <p>I'm using <code>xmlreader</code> to read an XML-file. I want to identify whether an element has child nodes or not.</p>
  
  <p>Currently, I use the <code>IsEmptyElement</code> method to find whether there are child elements. I found out that, even if the tag contains text data and not an element, it returns as true. </p>
  
  <pre><code>if (!file.IsEmptyElement) {
      elem.subElems.Add(readXml(file));
  }
  </code></pre>
  
  <p>How van I fix this issue using the xml reader? Any help would be appreciated.</p>
  
  <p>Thank you.</p>