Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Saving an Xml File in server

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Sir,
I have a problem of how to wrote a in xml file thats is in the server.
FileOutputStream output = new FileOutputStream(E://sample.xml");
OutputFormat format = new OutputFormat(document);
XMLSerializer serializer = new XMLSerializer(output, format);
serializer.serialize(root);
output.flush();
output.close();
This is how i write into file in the local ,But i need to write an xml file placed in the server.I have to specify the xml file to be written as "http://sample.xml".(url).
How could i do this.
pl.. help me.
with regards,
Sonara.
reply
    Bookmark Topic Watch Topic
  • New Topic