title: How to select all leaf nodes using XPath expression?
body: <p>I believe it's possible but couldn't figure out the syntax. Something like this:</p>
  
  <pre><code>xmlNode.SelectNodes("//*[count(child::*) &lt;= 1]")
  </code></pre>
  
  <p>but this is not correct.</p>