Use XPath instead (this is the outermost() function)
Get the highest level nodes of the given set Given the following dom:
O / \ | | A O | | \ B C D
And the following input: A, B, C, D
The nodes A, C, D are returned *
Refer to blueprintQuery for more information on how to import and use this function.
The highest level nodes, of which there were no ancestors found in the inputted map