4

I am implementing read and write xml in resource folder. Reading is ok, how can I modify this xml file save as sdcard:

EditText myXmlContent = (EditText)findViewById(R.id.my_xml);
String stringXmlContent;
try {
    stringXmlContent = getEventsFromAnXML(this);
    myXmlContent.setText(stringXmlContent);
} catch (XmlPullParserException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
} catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
}

I am getting stringXmlContent. How can stringXmlContent be converted in to an xml file saved in sdcard?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Narasimha
  • 3,802
  • 11
  • 55
  • 83

1 Answers1

2

Why you don't use XMLParse or DOM

Sandeep
  • 2,573
  • 3
  • 21
  • 28