android - To make the xml file from string -
i want create xml file string i.e have 1 string want convert xml file,how ?
try following code:
string pathname="d:\\xml files\\text.xml"; //specify file path here filewriter out=new filewriter(pathname); out.write(str); // assuming str contains text writen in xml file i.e. formed xml string out.close();
if above not work, write :
out.write(str.trim());
instead.
Comments
Post a Comment