passing an unix variable to an XML

I need help

I have a unix command :

VERSION=$(ls -d /vsn/v12.??.??.?? | sort | tail -1)

when i do echo $VERSION, i get the exact value, i want.

Now i want to use this variable and pass it to an xml. How can i do that?

You really cannot pass it to an xml, you will have to rewrite the xml file.
xml files have rule sets on how they are supposed to be formed. Do you know exactly where and exactly what you have to change?

What shell and OS are you running?