eigentlich bekomme ich keine Fehlermeldung!!!


Code:
 
Document doc = new Document(new Element("note"));
DocType doctype = new DocType("note", "U9000.dtd");
doc.setDocType(doctype);
Element note = doc.getRootElement();
//<note>-Attribute (Name, Wert)
note.setAttribute("created_date", sql.getCreatedDate());
 
String pfad="\\\\server01\\Daten\\ORG_Public\\ZLB\\";
String dateiname = pfad+"LS_"+dgtiS+"_"+liefScheinNr+".xml"; 
XMLOutputter outp = new XMLOutputter(); 
// Ausgabe des gesamten XML-Objects in die Datei
outp.output( doc, new FileOutputStream( new File(dateiname) ) );