new way to produce xml export