title: Extracting information from HTML using XPath
body: <p>I have a snippet of html which I extracted from the source of a webpage I'm working on:</p>
  
  <pre><code>&lt;span itemprop="homeLocation" itemscope itemtype="http://schema.org/Place"&gt;&lt;meta itemprop="name" content="Kansas"/&gt;
  </code></pre>
  
  <p>...and I'd like to extract the location, <code>Kansas</code> from it, using Xpath.</p>
  
  <p>Using an <a href="http://ponderer.org/download/xpath/" rel="nofollow">Xpath checker</a>, I have been testing this but to no avail.  </p>
  
  <p>I tried  </p>
  
  <pre><code>//*[@itemprop="homeLocation"]/meta[@itemprop="name"]/@content
  </code></pre>
  
  <p>and similar attempts, but can't seem to get a match. I don't understand what I'm doing wrong.</p>
  
  <p>Any advice would be greatly appreciated. </p>