title: Does getElementsByTagName return ALL child nodes?
body: <p>So let's say we have the following XML structure:</p>
  
  <pre><code>&lt;property&gt;
      &lt;label&gt;Label 1&lt;/label&gt;
      &lt;value&gt;value 1&lt;/label&gt;
  &lt;/property&gt;
  &lt;property&gt;
      &lt;label&gt;Label 2&lt;/label&gt;
      &lt;value&gt;value 2&lt;/label&gt;
  &lt;/property&gt;
  &lt;!-- more of these --&gt;
  </code></pre>
  
  <p>Provided that we have correctly loaded the XML document into variable <code>var xml</code>, does <code>xml.getElementsByTagName("property")</code> return ALL <code>property</code>, <code>label</code>, <code>value</code> nodes OR just <code>property</code> nodes with no children?</p>
  
  <p>Why I'm asking this is, I'd like to be able to do the following:</p>
  
  <pre><code>var props = xml.getElementsByTagName("property");
  var labels = props[0].getElementsByTagName("label");
  </code></pre>
  
  <p>If the function will not return any <code>label</code> or <code>value</code> nodes, what's the best way to get that done?</p>