Added new ways to create an XML file.

Still needs improvement!