Added method to create main xml. (Not Complete)
Fixed a bug in output file Name.
Added methods to replace a selected element with multiple elements.
Fixed tests to reflect changes in interface.