And what I'm actually looking for in this case, is a list of the top level element names ("A" and "B" in my example) together with a count of their children.
Try e.g. one of these two queries:
• count(//A/*), count(//B/*) • for $c in /Top/* return count($c/*)
Hm... I selected a second level element in the Map, filtered it, and typed "select *" in the command window, and the upper right corner shows "0 Results".
What do you mean with "command window"? "select *" doesn’t sounds valid to me, but the plain asterisk character (without "select") should do the job. It’s a valid query – a shortcut for child::element() –, and it’s gives you all child elements of the nodes in the current context.