Passing values to an XML file from shell script

:wall: Hi,

I have an XML file with 5 tags. I need to pass values to the XML file from a shell script that will replace values in 2 of the tags. I cannot hardcode the tag values in XML and use replace command in script as the values are likely to change.
Please help !!!!!!!!!!!

It will be good if we get an example input and expecting output for your issue.

I have 2 variables a and b . a=12345 and b=8976.
In the XML there are 2 tags suppose:
<xyz>111</xyz>
<uio>222</uio>
Now , I want to pass value of 'a' i.e. '12345' to XML tag <xyz> and replace '111' by '12345'. Again value of 'b' i.e. '8976' will be passed to XML tag <uio> and '222' will be replaced by '8976'.
How to do this in 1 go ?
Hope i have made myself clear !!!!!