Hi,
you could for example parse alias path of current node:
/topParent/secondLevel/thirdLevelFrom the above alias path you are able to determine alias path of the top parent:
/topParentAnd finally using
document API you can find information you are looking for.
Alternatively, if you need select nodes from appropriate level you can use SelectNodes method and define its where property, for example NodeLevel=1. This way only top level documents will be selected.
Best regards,
Ivana Tomanickova