To All The Xpath Experts

First off excuse me if maybe it’s not the exact place where to post this question;

I wish to get line and pattern number with a TPL command inside(F2xx).

Is it possible?

Thank you!

sorry, I really can’t get what you mean with this phrase

making an example, if inside my song there’s a F2xx command put in the line n.2 of the pattern n.3 (regardless the track number), I would achieve a result of 2 and 3 querying song.xml by xPath.