title: How to get "real" ChildNodes of XmlNode, ignoring whitespace nodes?
body: <p>Apparently XmlNode.ChildNodes-list (in C# .Net) contains not only real child nodes, but also special whitespace nodes. So even in the simplest case when having one tag inside another you can get parentNode.ChildNodes.Count == 3. How to get around this? </p>
  
  <p>Already tried:</p>
  
  <pre><code>xmlDocument.PreserveWhitespace = false;
  </code></pre>
  
  <p>Also:</p>
  
  <pre><code>foreach(XmlNode node in xmlDocument.SelectNodes("//*))
    if (node is XmlWhitespace)
      node.ParentNode.RemoveChild(node);
  </code></pre>