title: How to find specific parent node?
body: <p>I have to convert docx to xml and using DOM to find parent node of specific.</p>
  
  <p>For example</p>
  
  <pre><code>   &lt;chapter&gt;
         &lt;title&gt;
             &lt;label&gt;Chapter 1
             &lt;/label&gt;
         &lt;/title&gt;
         &lt;para&gt;This is chapterpara &lt;a id="book"/&gt;
         &lt;/para&gt;
     &lt;/chapter&gt;
  </code></pre>
  
  <p>Here i want to find anchor node's super parent's child(title node).</p>
  
  <p>I knew the anchor node reference by getting </p>
  
  <pre><code> var itemanchor=ItemElement.getElementsByTagName('a');
  </code></pre>
  
  <p>How to traverse specific parent node from the above reference?</p>
  
  <p>Thanks in advance.</p>