title: XML DOM. Get element by name on first child level
body: <p>I have such xml:</p>
  
  <pre><code>&lt;root&gt;
    &lt;element1&gt;
       &lt;doc&gt;2&lt;/doc&gt;
    &lt;/element1&gt;
    &lt;doc&gt;1&lt;/doc&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>I want to get element on first child level after root element (value = 1). If I do it through nodelist (pl/sql version of xmldom api):</p>
  
  <pre><code>nl := getElementsByTagName(rootnode,'doc');
  len := xmldom.getLength(nl);
  IF LEN&gt;0 THEN
      N:=xmldom.item(nl, 0);
  END IF;
  RETURN N;
  </code></pre>
  
  <p>first element in list would be element with value = 2. How could I process only through child nodes of first child level without looping through elements?</p>