Added new file creators before using BufferedWriter. Also added an xml writer so that the whole processing need not be repeated if the file writing fails.
Authored by: jwjoubert 2010-06-10
Parent: [r11756]
Child: [r11758]