- How to append data to xml content in Android
- <words>
- hdhsd
- </words>
- OutputStreamWriter out=new OutputStreamWriter(openFileOutput("keywords.xml", MODE_APPEND));
- out.write("hello");
- out.close();
- os=getApplicationContext().openFileOutput("keywords.xml", Context.MODE_WORLD_WRITEABLE);
- os.write("<words><word>moha</word></words>".getBytes());
- os.close();