email/xml processsing