¡@

Home 

2014/10/16 ¤W¤È 08:20:45

android Programming Glossary: one.xml

how to update xml file from another xml file dynamically?

http://stackoverflow.com/questions/9884051/how-to-update-xml-file-from-another-xml-file-dynamically

xml file dynamically I would like to update an xml file from another xml file.I have used an xml file as shown bellow one.xml xml version 1.0 encoding utf 8 ScrollView xmlns android http schemas.android.com apk res android android layout_width fill_parent.. to change the attribute value one. xml when if int name linearLayout1 value 8 from two.xml then i would like to update one.xml file as where LinearLayout android id @ id linearLayout1 then change the attribute value as android visibility gone . please.. if e.getAttribute name .equals linearLayout1 if e.getAttribute value .equals 8 flag true Logic for reading one.xml and setting android visibility gone docFactory DocumentBuilderFactory.newInstance docBuilder docFactory.newDocumentBuilder..