Adds basic xml handling
Adds special end method for xml