title: xerces c++ getChildNodes getLength
body: <p>I am trying to parse am XML string using xerces c++. </p>
  
  <p>The structure is</p>
  
  <pre><code>&lt;root&gt;
  &lt;optionA&gt;
  &lt;optionB/&gt;
  &lt;/optionA&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>I read the xml string into MemBufInputSource and then parse it.</p>
  
  <p>When I call getChildNodes() on root, it always returns 2. Should it not be 1? Here, only option A is the child of root. Also, for each child I check if its a node and of type element. For the first child, the check is always false. </p>
  
  <p>Why does it show a count of 2 children? </p>