title: Editing and Updating XML based on condition using Shell Script
body: <p>I want to change a value (i.e., <code>value="false"</code>) using Shell Script. How could I go about doing that. Please provide me with any suggestion.</p>
  
  <p><strong><em>What I have tried / used:</em></strong></p>
  
  <p>I used command-> <code>sed 's/true/false/g' ml.xml</code>.</p>
  
  <p><strong><em>Problem:</em></strong></p>
  
  <p>But all <code>true</code> content changed. </p>
  
  <p><strong><em>What I would like:</em></strong></p>
  
  <p>My requirement entails that only <em>a certain specific</em> content to be changed, not every content.  </p>
  
  <p>Before: <code>property name="s" value="true"</code> </p>
  
  <p>After: <code>property name="s" value="false"</code> </p>
  
  <h2>ml.file</h2>
  
  <pre><code>&lt;bean id="a"
      class="com.s.analyzer.Analyzer" scope="singleton"&gt;
      &lt;!--  *** CHANGE to true for first daily run, otherwise false *** --&gt;
      &lt;property name="s" value="true" /&gt;
  
      &lt;property name="a1l" value="2.5" /&gt;
      &lt;property name="mi" value="2000" /&gt;
      &lt;property name="ma" value="1" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p></p>