add basic xml functionality