title: Sed command to edit an XML file doesn't work
body: <p>I'm not a developer or anything close to IT, I'm a medical student,  I'm just trying to use tasker to edit an xml file (Telegram notification shared preferences) using sed shell command.
  This is the xml file :</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8' standalone='yes' ?&gt;&lt;map&gt;
  &lt;int name="diditem-1147514813" value="11890" /&gt;
  &lt;boolean name="EnableContactJoined" value="true" /&gt;
  &lt;int name="diditemo-1088528518" value="241" /&gt;
  &lt;int name="spam3_-1482963590" value="1" /&gt;
  &lt;int name="spam3_-1332601105" value="1" /&gt;
  &lt;string name="org.telegram.key-1363717298"&gt;&lt;/string&gt;
  &lt;int name="spam3_98617228" value="1" /&gt;
  &lt;int name="spam3_-1140252249" value="1" /&gt;
  &lt;int name="notify2_-1408220341" value="2" /&gt;
  &lt;boolean name="silent_-1366564907" value="false" /&gt;
  &lt;string name="org.telegram.key826702649_s"&gt;&lt;/string&gt;
  &lt;int name="notify2_-1346720866" value="2" /&gt;
  &lt;boolean name="silent_-1127069572" value="false" /&gt;
  &lt;string name="org.telegram.key-1404277588_s"&gt;&lt;/string&gt;
  &lt;int name="spam3_-1449317726" value="1" /&gt;
  &lt;boolean name="silent_-1070638809" value="false" /&gt;
  &lt;int name="spam3_-1221388827" value="1" /&gt;
  &lt;int name="notify2_-1363717298" value="2" /&gt;
  &lt;boolean name="silent_-1134531399" value="false" /&gt;
  &lt;int name="notify2_-1452321226" value="2" /&gt;
  &lt;int name="diditemo-1147391459" value="95" /&gt;
  &lt;int name="notify2_-1123180379" value="2" /&gt;
  &lt;int name="notify2_-1123340592" value="2" /&gt;
  &lt;int name="diditemo-1120840953" value="671" /&gt;
  &lt;string name="org.telegram.key-1058364321"&gt;&lt;/string&gt;
  &lt;int name="notify2_-1138327678" value="2" /&gt;
  &lt;string name="org.telegram.key644204122_s"&gt;&lt;/string&gt;
  &lt;int name="notify2_-1058364321" value="2" /&gt;
  &lt;int name="nextTosCheckTime" value="1561198884" /&gt;
  &lt;int name="diditem-1147391459" value="21442" /&gt;
  &lt;int name="spam3_-1075225279" value="1" /&gt;
  &lt;int name="diditemo200752145" value="-3" /&gt;
  &lt;int name="spam3_-1136693240" value="1" /&gt;
  &lt;string name="org.telegram.key-1083963611_s"&gt;&lt;/string&gt;
  &lt;int name="notify2_-1094873662" value="2" /&gt;
  &lt;string name="org.telegram.key-1070638809_s"&gt;&lt;/string&gt;
  &lt;boolean name="silent_-1238708706" value="false" /&gt;
  &lt;int name="notify2_-1467863848" value="2" /&gt;
  &lt;string name="org.telegram.key-1363717298_s"&gt;&lt;/string&gt;
  &lt;boolean name="silent_-1094873662" value="false" /&gt;
  &lt;int name="spam3_200752145" value="1" /&gt;
  &lt;string name="org.telegram.key777000_s"&gt;&lt;/string&gt;
  &lt;string name="org.telegram.key-1332601105"&gt;&lt;/string&gt;
  &lt;int name="diditem-1075225279" value="1296" /&gt;
  &lt;int name="EnableAll2" value="0" /&gt;
  &lt;int name="spam3_777000" value="1" /&gt;
  &lt;int name="spam3_-1147514813" value="1" /&gt;
  &lt;int name="spam3_-1465895562" value="1" /&gt;
  &lt;int name="notify2_-1083963611" value="2" /&gt;
  &lt;int name="notify2_-1238708706" value="2" /&gt;
  &lt;string name="org.telegram.key-1404277588"&gt;&lt;/string&gt;
  &lt;int name="diditemo-1482963590" value="255" /&gt;
  &lt;string name="org.telegram.key-1008063018_s"&gt;&lt;/string&gt;
  &lt;int name="archivedStickersCount0" value="0" /&gt;
  &lt;int name="spam3_826702649" value="1" /&gt;
  &lt;int name="archivedStickersCount1" value="0" /&gt;
  &lt;int name="diditemo-1115111220" value="135" /&gt;
  &lt;int name="spam3_215206978" value="1" /&gt;
  &lt;boolean name="silent_-1467863848" value="false" /&gt;
  &lt;int name="notify2_-1136693240" value="2" /&gt;
  &lt;int name="spam3_-1114306967" value="1" /&gt;
  &lt;int name="notify2_636556753" value="0" /&gt;
  &lt;int name="dismissDate" value="1560249231" /&gt;
  &lt;int name="spam3_-1037167615" value="1" /&gt;
  &lt;int name="spam3_773503309" value="1" /&gt;
  &lt;int name="spam3_-1330052861" value="1" /&gt;
  &lt;int name="spam3_-1094873662" value="1" /&gt;
  &lt;int name="spam3_-1467863848" value="1" /&gt;
  &lt;int name="notify2_-1332601105" value="2" /&gt;
  &lt;boolean name="silent_-1058364321" value="false" /&gt;
  &lt;int name="EnableChannel2" value="0" /&gt;
  &lt;int name="notify2_-1366564907" value="2" /&gt;
  &lt;int name="spam3_-1058364321" value="1" /&gt;
  &lt;string name="org.telegram.key-1083963611"&gt;&lt;/string&gt;
  &lt;int name="spam3_-1120288839" value="1" /&gt;
  &lt;int name="spam3_-1208669633" value="1" /&gt;
  &lt;boolean name="silent_-1208669633" value="false" /&gt;
  &lt;int name="spam3_-1146675158" value="1" /&gt;
  &lt;int name="notify2_-1116272386" value="2" /&gt;
  &lt;int name="spam3_-1123340592" value="1" /&gt;
  &lt;int name="spam3_-1109249098" value="1" /&gt;
  &lt;int name="notify2_-1134531399" value="2" /&gt;
  &lt;int name="spam3_-1147391459" value="1" /&gt;
  &lt;boolean name="silent_-1452321226" value="false" /&gt;
  &lt;int name="spam3_-1147558401" value="1" /&gt;
  &lt;int name="notify2_-1008063018" value="2" /&gt;
  &lt;int name="spam3_-1115111220" value="1" /&gt;
  &lt;int name="notify2_-1127069572" value="2" /&gt;
  &lt;int name="spam3_-1001767481" value="1" /&gt;
  &lt;int name="notify2_-1070638809" value="2" /&gt;
  &lt;string name="org.telegram.key-1096407797_s"&gt;&lt;/string&gt;
  &lt;string name="org.telegram.key-1008063018"&gt;&lt;/string&gt;
  &lt;string name="org.telegram.key826702649"&gt;&lt;/string&gt;
  &lt;int name="spam3_459070976" value="1" /&gt;
  &lt;boolean name="askAboutContacts" value="true" /&gt;
  &lt;string name="org.telegram.key-1070638809"&gt;&lt;/string&gt;
  &lt;int name="spam3_-1172303505" value="1" /&gt;
  &lt;int name="spam3_-1008420687" value="1" /&gt;
  &lt;string name="org.telegram.key-1147558401_s"&gt;c444f5f452062a465bdab093e40b0417&lt;/string&gt;
  &lt;string name="org.telegram.key200752145"&gt;&lt;/string&gt;
  &lt;int name="spam3_-1045490838" value="1" /&gt;
  &lt;int name="diditem-1120840953" value="5976" /&gt;
  &lt;string name="org.telegram.key773503309"&gt;&lt;/string&gt;
  &lt;boolean name="silent_-1136693240" value="false" /&gt;
  &lt;int name="notify2_-1208669633" value="2" /&gt;
  &lt;int name="spam3_-1029023478" value="1" /&gt;
  &lt;boolean name="silent_-1120549898" value="false" /&gt;
  &lt;int name="diditemo-1075225279" value="346" /&gt;
  &lt;boolean name="EnableInAppPreview" value="false" /&gt;
  &lt;int name="EnableGroup2" value="0" /&gt;
  &lt;int name="spam3_-1238708706" value="1" /&gt;
  &lt;int name="notify2_-1147558401" value="0" /&gt;
  &lt;int name="spam3_-1061616576" value="1" /&gt;
  &lt;string name="org.telegram.key-1147558401"&gt;0channel-1147558401_3373524404048658363&lt;/string&gt;
  &lt;string name="org.telegram.key200752145_s"&gt;&lt;/string&gt;
  &lt;int name="spam3_-1142805440" value="1" /&gt;
  &lt;int name="notify2_-1120549898" value="2" /&gt;
  &lt;int name="spam3_-1098270440" value="1" /&gt;
  &lt;int name="spam3_-1120840953" value="1" /&gt;
  &lt;string name="org.telegram.key773503309_s"&gt;&lt;/string&gt;
  &lt;int name="diditem200752145" value="19605" /&gt;
  &lt;int name="notify2_-1139909213" value="2" /&gt;
  &lt;boolean name="silent_-1075225279" value="false" /&gt;
  &lt;int name="spam3_-1363717298" value="1" /&gt;
  &lt;boolean name="silent_-1088528518" value="false" /&gt;
  &lt;int name="diditem-1088528518" value="3444" /&gt;
  &lt;int name="spam3_644204122" value="1" /&gt;
  &lt;boolean name="EnablePreviewGroup" value="true" /&gt;
  &lt;int name="spam3_-1040029844" value="1" /&gt;
  &lt;int name="diditemo-1147514813" value="580" /&gt;
  &lt;boolean name="silent_-1029023478" value="false" /&gt;
  &lt;boolean name="silent_-1096407797" value="false" /&gt;
  &lt;int name="spam3_-1404277588" value="1" /&gt;
  &lt;int name="spam3_-1096407797" value="1" /&gt;
  &lt;int name="spam3_-1235237937" value="1" /&gt;
  &lt;int name="notify2_-1088528518" value="2" /&gt;
  &lt;int name="spam3_-1070638809" value="1" /&gt;
  &lt;boolean name="silent_-1408220341" value="false" /&gt;
  &lt;boolean name="silent_636556753" value="false" /&gt;
  &lt;int name="notify2_-1096407797" value="2" /&gt;
  &lt;int name="spam3_-1088528518" value="1" /&gt;
  &lt;string name="org.telegram.key-1332601105_s"&gt;&lt;/string&gt;
  &lt;int name="diditem-1115111220" value="956" /&gt;
  &lt;int name="diditem-1482963590" value="266" /&gt;
  &lt;string name="org.telegram.key-1040029844"&gt;&lt;/string&gt;
  &lt;int name="notify2_-1075225279" value="2" /&gt;
  &lt;int name="spam3_-1268571449" value="1" /&gt;
  &lt;string name="org.telegram.key644204122"&gt;&lt;/string&gt;
  &lt;boolean name="EnablePreviewChannel" value="true" /&gt;
  &lt;int name="notify2_-1221388827" value="2" /&gt;
  &lt;string name="org.telegram.key-1040029844_s"&gt;&lt;/string&gt;
  &lt;string name="org.telegram.key-1096407797"&gt;&lt;/string&gt;
  &lt;string name="org.telegram.key-1058364321_s"&gt;&lt;/string&gt;
  &lt;boolean name="silent_-1147558401" value="false" /&gt;
  &lt;boolean name="EnablePreviewAll" value="false" /&gt;
  &lt;int name="spam3_-1091591879" value="1" /&gt;
  &lt;int name="spam3_-1138327678" value="1" /&gt;
  &lt;string name="org.telegram.key777000"&gt;&lt;/string&gt;
  &lt;int name="spam3_-1308595305" value="1" /&gt;
  &lt;int name="spam3_-1008063018" value="1" /&gt;
  &lt;boolean name="silent_-1008063018" value="false" /&gt;
  &lt;boolean name="silent_-1363717298" value="false" /&gt;
  &lt;boolean name="silent_-1138327678" value="false" /&gt;
  &lt;int name="notify2_-1029023478" value="2" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>So I was testing on txt file and the command was the following:</p>
  
  <pre><code>sed -i 's+"EnablePreviewAll" value="false"/&gt;+"EnablePreviewAll" value="true"/&gt;+' /storage/emulated/0/basel.txt
  </code></pre>
  
  <p>It doesn't give me an error but the value doesn't change at all.
  (I'm using Termux with root access)
  (I copied the text and named it basel.txt to test on it)</p>