Gsar Multiple lines

Hi All!

I am scripting a change to an xml and would like to change a complete tag. Only problem is that the xml tagging isn’t numbered or sequenced at all.
The way i am changing it is by gsar -i"some text" -r"differenttext" -o, the problem i have is within this xml there is a ’ <APP Type></AppType> and <Image></Image> tags that i want to change for only one, out of about 40, instances.

Here is my example of my xml;

  &lt;Button&gt;
    &lt;Caption&gt;Cashier&lt;/Caption&gt;
    &lt;Command&gt;c:\backroom\master.pos\ce.exe&lt;/Command&gt;
    &lt;Password&gt;No&lt;/Password&gt;
    &lt;Image&gt;
    &lt;/Image&gt;
    &lt;SingleInstance&gt;Yes&lt;/SingleInstance&gt;
    &lt;AppType&gt;DOS&lt;/AppType&gt;
  &lt;/Button&gt;

Via a script of somesort i would like to be able to change the image and app type, i am assuming that GSAR wouldn’t be able to help… Any suggestions?

Cheers again all!