title: Required Xpath Logic
body: <p>I am developing a data scraping program by using xulrunner and .net I and able to achieve all the thing just I am unable to implement the logic to find similar elements on page ,details are as below</p>
  
  <p>1) If I select any element/text then I get its xpath so I wish 
  Selects all similar elements page wide.I think we can achieve this by  removing the position part from the selection xpath.</p>
  
  <p>2) If I select any element/text then I get its xpath so I wish 
  Selects all similar elements next to the selected element</p>
  
  <p>3)If I select any element/text then I get its xpath so I wish 
  Selects all similar elements within the parent element</p>
  
  <p>I am really unable to understand how to implement it</p>