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

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -