title: How to access nested tag of element in XML which have common name
body: <p>My XML somewhat looks like this:</p>
  
  <pre><code>&lt;A&gt; AID = "10"  BID = "20" CID = "30" DID = "40"
          &lt;B&gt; AB = "100" BB = "200" CB = "300" DB = "400"&lt;/B&gt;
      &lt;/A&gt;
      &lt;C&gt; EID = "10"  FID = "20" GID = "30" HID = "40"
          &lt;B&gt; EB = "10" FB = "10" GB = "10" HB = "10 &lt;/B&gt;
      &lt;/C&gt;
  </code></pre>
  
  <p>I wanted to access "B" tag element which is inside the "A" tag element.I am using <code>respXML.getElementsByTagName("B");</code> But in this case I am getting access of both the <code>B</code> tag. I want only access to <code>B</code> tag which only part of <code>A</code> tag not the <code>C</code> tag. </p>