Added xml utility method