Add XMLGenerator and save, saveAs functions.