I want to search for a XML node, but limiting the search to a certain depth? What is the expression for that?
For example, I want to find all article tags, but exclude nested article tags, so only id 1 and 2.
<div id="timeline">
...
<article id="1"> </article>
<article id="2">
...
<article id=3> </article>
</article>
</div>