Move xml functions into xmltools directory