cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to get the root tag name

Former Member
0 Likes
242

I have a problem: I receive several XML files in my transaction input

<?xml version="1.0" encoding="UTF-8"?>

<NAMES>

...

</NAMES>

<?xml version="1.0" encoding="UTF-8"?>

<VALUES>

...

</VALUES>

and I want to obtain the root tag name (the string NAMES, VALUES, ecc.).

I obtained this result using a XSL transformation, bui I think that the best (and easiest) way is to use an XPath command. I tried but I can not find the right command.

Does anybody know how to do this?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

I found it:

Transaction.Source{name(/*)}