XML search tags and replace value



I have a xml file which I have several times



<device id = "1">
<details>
<entry>
<key> test </ key>
<value> value </ value>
</ entry>
<entry>
<key> attempt </ key>
<value> Result </ value>
</ entry>
</ details>
</ device>
<device id = "2">
<details>
<entry>
<key> test </ key>
<value> value </ value>
</ entry>
<entry>
<key> attempt </ key>
<value> Result </ value>
</ entry>
</ details>
</ device>


etc ... and I need to make



<entry>
<key> test </ key>
<value> value </ value>
</ entry>


on



<test> value </ test>


u all listings devices. Thank you for your advice


No comments:

Post a Comment