title: Xpath expression getting parent element's text
body: <pre><code>&lt;books&gt;
    &lt;physics id="abcd"&gt; Book1 &lt;/physics&gt;
    &lt;maths&gt; Book2 &lt;/maths&gt;
    &lt;history id="pqrs"&gt;Book3 &lt;/history&gt;
  &lt;/books&gt;
  </code></pre>
  
  <p>This xpath expression:</p>
  
  <pre><code>select=".//@ID"
  </code></pre>
  
  <p>will give me all the nodes having an id. From there I need to go the parent node and get the text in it.</p>
  
  <p>In the above example, I need to get physics, history as answers. Which xpath expression can give me that result?</p>