It is a sequential search. It will search for a match for child1 in each xhtml file until none can be found, then move on to child2, and then rinse and repeat.
I think what you want is the ability to ignore a match made for child1, and then go on to find other child1 matches? Or do you want to abort child1, and move on to child2 immediately (effectively skipping all remaining searches for child1)?
|