now produces formatted XML