Added xml parsing and creating methods