Saturday, 3 January 2015

how to give xml start tag with attributetes in xmlinputformat hadoop



I want to parse xml file in hadoop. It contains a tag like



article name="..." year="...."

If I give

article

as my start tag in xmlinputformat start_tag_key it doesn't recognize the article tag since my file contains article tag with attributes. So kindly reply how can i specify start_tag_key in xmlinputformat for the above mentioned article tag.

No comments:

Post a Comment