I.e. How to take someone elses generic XPATH idea and use it in IDM.
So your question is sort of hard to answer. I have no idea if it would work in Drupal, since I have never touched drupal (except as a user, since i think this site (Cool Solutions) is actually running on Drupal.
In principle, sure as heck it should work in Drupal. But no idea.