aspose file tools
The moose likes Java in General and the fly likes Saving an Xml File in server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Saving an Xml File in server" Watch "Saving an Xml File in server" New topic
Author

Saving an Xml File in server

Sonara Rahul
Ranch Hand

Joined: Jul 07, 2001
Posts: 60
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Saving an Xml File in server
 
Similar Threads
Preserving empty elements in XMLSerializer
Xml/File Input/Output
Editing data after retrieving from XML file and saving again
Save XML Document to File?
Filename as url.