xml write mehtods