public void NotesMain() { try { List<String> lines = new ArrayList<String>(); lines.add("test"); OutputStreamWriter out_DV; URL xmlUrlDV = new URL( "http://000.0.000.000/Web/XML.nsf/id/DV?openDocument"); URLConnection connection = xmlUrlDV.openConnection(); connection.setDoOutput(true); out_DV = new OutputStreamWriter(connection.getOutputStream()); for (String line : lines) out_DV.write(line); out_DV.flush(); out_DV.close(); javax.swing.JOptionPane.showMessageDialog(null, "xml Datei erstellt.", "Fertig", 1); } catch (Exception e) { e.printStackTrace(); } }
URL xmlUrlDV = new URL("http://000.0.000.000/Web/XML.nsf/id/DV?editDocument");