 <p>here is wat u want <a href="https://github.com/studhadoop/xmlparsing-hadoop/blob/master/XmlParser11.java" rel="nofollow">https://github.com/studhadoop/xmlparsing-hadoop/blob/master/XmlParser11.java</a></p> <pre><code>line 170 :if (currentElement.equalsIgnoreCase("name")) line 173 :else if (currentElement.equalsIgnoreCase("value")) </code></pre> <p>name and value are the tags in my xml file . In ur case if you need to process the tags inside FACULTY,u can use Name instead of name and Age instead of value.</p> <pre><code>conf.set("xmlinput.start", "&lt;Faculty&gt;"); conf.set("xmlinput.end", "&lt;/Faculty&gt;"); </code></pre>