Hi all,
I am having trouble finding and replacing text in a xml file. My issue is I have to find a text in a xml file and change it to some other text. But the text in some element tag for ex: 'Name' should not be changed.
So, for example the xml is as shown below and I had to find and replace the text 'Hello' with 'Hi' but with out changing the Name tag.
<Book>
<Name> Hello Book</Name>
<Descr>Hello there </Descr>
<Price>15</Price>
<Author>Hello author </Author>
</Book>
The result should be
<Book>
<Name> Hello Book</Name>
<Descr>Hi there </Descr>
<Price>15</Price>
<Author>Hi author </Author>
</Book>
Can anyone give me some suggestions on how to do it? I have searched so many places but couldn't get any help.
Thanks in advance,
Kushal