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

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -