Generate XML from form submit?

Is anyone aware of a plugin or extension, that helps generating XML from form data and attach and send it with the form result mail?