Need help in query expression

Hi everyone! :slight_smile:

Really need you guys help to solve this.

File 1:


1
ABC


2
DEF



Ok, just a quick one. How to write a query statement to display the tags: 1 when the query statement is something like this:
/TCM/RIREG[NAME = ‘ABC’]?

If I write this statement, it will show …. I just only want it to display 1.
Is this possible?

Thanks for cracking your brains on this one,
-KAren-
:stuck_out_tongue:

Yeah! I managed to find out the query statement.

//RIREG[NAME = ‘ABC’]/ID

-KAren-
:smiley: