title: How can I access an element by using its DOM hierarchy(parent element)?
body: <p>I want to access an element using a DOM hierarchy Node structure, through its parent nodes.I am trying to find the DOM hierarchy through firebug; want something like, <code>&lt;parent_node1&gt;.&lt;child_node1&gt;.&lt;child_node2&gt;</code> (<strong>not by</strong> <code>document.getElementByID</code>, <code>getElementbyname</code>) to access an element. </p>
  
  <p>I want to automate a scenario like, I have column headers and corresponding values. Want to test, whether the values present under each column header, is correct...</p>
  
  <p>I am thinking of using DOM as a method of automating this case...But, how can I find the DOM hierarchy...? </p>
  
  <p>What I see through Inspect Element in Firebug is something like, list of events, elements and is not looking like a hierarchy node structure...Can somebody help in this regard please?</p>