Added more functionality to the XMLToll utility.

Still needs refactoring and commenting.