Please find the code and the xml input file that will help you in processing xml file using Map reduce.

Hope it helps.