Added function to create an XML Document. Later this document will be the same one we read in.