Here is the specific XML I ultimately need:
joe@example.com
I would suggest a gem like XmlSimple which provides this kind of facility.