Dear All,
I am reading one XML file to extract value from the particular tag:-
Sample xml is below:-
<KeyValuePairs>
<Key>TestString</Key>
<Value>Test12_Pollings</Value>
</KeyValuePairs>
I want to read the value for the KEY tag and there will be multiple key tags :-
awk '/<Key>/ { print }' Test.xml
Output
<Key>Shared_Value</Key>
I want output only as
Shared_Value
without the Key tags