Archive for the ‘Lotus Notes’ Category

Java code snippet to export Lotus Notes Documents to XML

Wednesday, April 21st, 2010

View view = db.getView(”myview”);
Document doc = view.getFirstDocument();
while (doc != null) {
BufferedWriter bw = new BufferedWriter(new FileWriter(”c:\temp” + File.separator + doc.getUniversalID() + “.xml”));
doc.generateXML(bw);
bw.close();
doc = view.getNextDocument(doc);
}

——————————————————

If you have any questions, please send me an email at Randy@CSATechConsulting.com