How to display Data

If I have data in xml file as an attribute what syntax should I use, in XQuery language, in order to display the same data as an element?

For example: My data in xml

After I write a query I want data to be displayed as

Please help me!!!
Thank you, Dalius.

Hello Dalius,

how does this look?
  for $op in input()/operation


Thank you Trevor for you answer, it is just what I need. I?m getting the data displayed the way I want. Appreciate!!!

Dalius. :wink: