Hi,
I want to do the following
Assume there is an xml which contains entries like the following...
<a attr1="value1" attr2="value2"/>
<b attr1="value3" attr2="value4" attr3="value5"/>
<a attr1="value1" attr2="value2"/>
....
I want to replace the "attr1" to say "attr3" in every occurence of <a/> tag.
I need the result to be something like
<a attr3="value1" attr2="value2"/>
<b attr1="value3" attr2="value4" attr3="value5"/>
<a attr3="value1" attr2="value2"/>
....
Is there any tool to do the above?
Any shell scripts?
Please reply...
Thanks and Regards,
Sriram.C.S