title: Modify xml attribute value Android
body: <p>I have an xml like this in the <code>raw</code> folder</p>
  
  <pre><code>&lt;premios&gt;
      &lt;premio
          corazones="5000"
          nombrerecurso="foto"
          carpetarecurso="drawable"
          tipo="imagen"
          abierto="yes"
          /&gt;
      &lt;premio
          corazones="6000"
          nombrerecurso="cuak"
          carpetarecurso="raw"
          tipo="audio"
          abierto="no"
      /&gt;
      &lt;premio
          corazones="7000"
          nombrerecurso="video"
          carpetarecurso="raw"
          tipo="video"
          abierto="no"
      /&gt;
      &lt;premio
          corazones="7000"
          nombrerecurso="video"
          carpetarecurso="raw"
          tipo="video"
          abierto="yes"
      /&gt;
  &lt;/premios&gt;
  </code></pre>
  
  <p>I read it on the <code>OnCreate</code> of the <code>activity</code> and with the attribute <code>abierto</code> I am building a <code>List&lt;Boolean&gt;</code> (<code>yes-&gt;true</code>, <code>no-&gt;false</code>).</p>
  
  <p>The thing is that while the <code>Activity</code> is running, the list may be modified and some <code>false</code> may become <code>true</code>. </p>
  
  <p>So, when the <code>Activity</code> is Stopped, I would want this changes to be saved, modifying in the <code>XML</code> the attributes "<code>abierto</code>" where "no" becomes "yes".</p>