title: Using XPath to filter HTML by class value
body: <p>I'm fetching an a HTML page and try to get some of it's content to show it in a table view. Following the documentation I tried NSXMLDocument and NSXmlParser but could not get any of them to give me the right data back :-(</p>
  
  <p>The page I'm trying to scrap is <a href="http://www.instapaper.com/u" rel="nofollow">http://www.instapaper.com/u</a></p>
  
  <p>The code I'm using is</p>
  
  <pre><code>NSXMLDocument * doc = [[NSXMLDocument alloc]
                          initWithXMLString: data
                          options: NSXMLDocumentTidyHTML
                          error: &amp;error];
  NSArray* rows = [doc nodesForXPath:@"//div[class='tableViewCell']" error:&amp;error];
  </code></pre>
  
  <p>to get DIVs with class=tableViewCell.</p>
  
  <p>If I only search for //div I get back a lots of them, but filtering by class seems not to be working :-(</p>
  
  <p>Any idea what I'm doing wrong?</p>
  
  <p>Thanks for any help,
  Miguel</p>