What do you think of the "xpath" element? Xpath is a query language to find node / nodes and not describe where node is located.
You can use xpath to find the given element. eg.
xmlDocument.SelectNodes("//*[contains(text(), 'ThisText')]");
Then you can scroll through the returned nodes and see their name / parent, etc.
source share