Is there a way to limit the depth DOMXPath::query will look at?
Consider the following document:
<div>
<span>
<div>
</div>
</span>
</div>
How could I limit the query
//div
So it only matches the first level and not the descendants?