title: A PHP HTML parser that lets me do class select and get parent nodes
body: <p>So I'm in a situation where I am scraping a website with PHP and I need to be able to get a node based on it's css class. I need to get a ul tag that doesn't have an id attribute but does have a css class.  I, then need to get only li tags inside it which contain specific anchor tags, not all the li tags.</p>
  
  <p>I've looked through DOMDocument, Zend_Dom, and neither have both of the requirements, class selections and dom traversal(specifically ascending to parents).</p>