Added a lot of functionality to XMLTag