Add xml functionality