I have the following xml file where by i want to remove the following line from the file
This is what i have so far:
Code:
file.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE data PUBLIC " ....... "
<data1>
<data2>
<removeTxt value="1234567&2442_1==" />
<typeName="replace" />
---
----
I am using sed to remove the following line "<removeTxt value="1234567&2442_1==" />" from the file.xml
Code:
sed -i '/</removeTxt value=/<\/>>/d' file.xml
But this doesn't seem to remove the line. Can anyone spot why not ?