title: how to update xml file from another xml file dynamically?
body: <p>I would like to update an xml file from another xml file.I have used an xml file as shown below:</p>
  
  <p><strong>one.xml</strong></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" android:background="#00BFFF"&gt;   
     &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"&gt;
  &lt;LinearLayout
      android:id="@+id/linearLayout1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content" android:gravity="center" android:visibility="visible"&gt;
  &lt;/LinearLayout&gt;
  &lt;LinearLayout
      android:id="@+id/linearLayout2"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content" android:gravity="center" android:visibility="visible"&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p><strong>two.xml</strong> as follows:</p>
  
  <pre><code>      &lt;?xml version='1.0' encoding='utf-8' standalone='yes' ?&gt;
         &lt;map&gt;
        &lt;int name="linearLayout1" value="8" /&gt;
        &lt;int name="linearLayout2" value="0" /&gt;
        &lt;/map&gt;
  </code></pre>
  
  <p>from the above two xml files i would like to change the attribute value one. xml when 
  if </p>
  
  <pre><code>  &lt;int name ="linearLayout1" value = "8"/&gt; 
  </code></pre>
  
  <p>from <strong>two.xml</strong> then I would like to update <strong>one.xml</strong> file as where LinearLayout <strong>android:id="@+id/linearLayout1"</strong> then change the attribute value as <strong>android:visibility="gone"</strong>.</p>