* {@link Document} to parse
* @param writers
* {@link AbstractCSVWriter}(s) to write the file(s) to
*/
public static void convertDOMToCSV(Document doc, AbstractCSVWriter[] writers) throws IOException {
XMLCSVReader r = new XMLCSVReader(doc);
String[] record;
int[] fileIndex = new int[1];
while ((record = r.read(fileIndex)) != null) {
writers[fileIndex[0]].write(record);
fileIndex[0] = 0;
}
}