title: attribute value extraction in XML using R
body: <p>I am not sure how to do this</p>
  
  <pre><code>library(XML)
  hp &lt;- htmlParse('&lt;li&gt;&lt;div class="subtle"&gt;Culture and Values&lt;/div&gt; &lt;span class="notranslate gdBars sm " title="5.0"&gt; &lt;span class="gdBarsSep"&gt;Â &lt;/span&gt;&lt;&lt;/li&gt;')
  </code></pre>
  
  <p>I want to extract "title" value which "5.0" in the above example using R code.</p>
  
  <p>thanks   Is there any way that I can specify that I want to retrive only those "title" values from "span" where "Culture and Values" appears in "div"?</p>