basic xml functionality working