XML Writer Generator

Added code to generate methods to write to an XML file from the
generated class library.