a me non da problemi, vedo in charo la stringa.

Il test che ho fatto è questo ma cambia poco credo:

codice:
import java.io.*;

class test {
public static void main(String args[]) throws Exception {
 String inputLine = "<OTA_HotelResRQ><POS><Source ISOCurrency=\"USD\"/></POS>";
 File fileWR = new File("test.txt");                 
 PrintWriter pw =  new PrintWriter(new FileOutputStream (fileWR,false));
 pw.write(inputLine);
 pw.close();
 }
}
con cos'è che apri il file?