August 2003
Intermediate to advanced
624 pages
15h 3m
English
The Java implementation is composed of the following source files:
XMLToCSVSimple.java: the main routine for the Java application
CSVRowWriter.java: a class with write and formatRow methods
SAXErrorHandler.java: a class that handles exceptions while parsing the input XML document
The formatRow method is not very relevant to the main thrust of the book, so I won't discuss it further here other than to make one comment. The formatRow method uses only a comma as a field delimiter and always encloses fields with quotes. In Chapter 7 we'll develop a more flexible approach.