hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ranjini Rathinam <ranjinibe...@gmail.com>
Subject XML to TEXT
Date Fri, 03 Jan 2014 05:16:58 GMT

Need to convert XML into text using mapreduce.

I have used DOM and SAX parser.

After using SAX Builder in mapper class. the child node act as root Element.

While seeing in Sys out i found thar root element is taking the child
element and printing.

For Eg,

when this xml is passed in mapper , in sys out printing the root element

I am getting the the root element as


Please suggest and help to fix this.

I need to convert the xml into text using mapreduce code. Please provide
with example.

Required output is


Please help.

Thanks in advance,
Ranjini R

View raw message