Relative DOMNode xpath query in PHP
I use something like
//*[@attr] to search for nodes with a given attribute. If i give a reference node to
$xpath->query, it does a non-relative search.
// to search for children of the context node.
Get all child nodes
But then that doesn't get all descendants...
So something like:
where you would change the
*[@attr] portion to match whatever you're looking for.