String quotation = request.getParameter("quotation");
String ret_quotation = getShakespeareSoap().getSpeech(quotation);OutputStream fout= new FileOutputStream(quotation + ".xml");
OutputStream bout= new BufferedOutputStream(fout);
OutputStreamWriter out1 = new OutputStreamWriter(bout, "UTF-8");
out1.write("<?xml version=\\"1.0\\" ");
But now I've got one tiny step further -- I now know (thanks to a recent thread on email@example.com), that you can use the Options window to hide file extensions. As a result, thanks to the filenames being equal to the search strings, it now seems as if I've done something magical to the labels of the Source Editor tabs -- it seems that I've put the search strings in the labels of the Source Editor tabs, while all I've done is made the filenames equal to the search strings and then hid the file extensions (click to enlarge):
The screenshot above also shows where you should go in the Options window to hide the file extensions.