I was away on a vacation and therefore couldn’t write all these days. In this post, i will talk about reading an XML file using DOM parser in JAVA.

Below i am putting the XML file extract with it’s name.
XML file: ReadThisXML.xml
<?xml version=”1.0″?>
<organization>
<employee>
<firstname>Jack</firstname>
<lastname>Rose</lastname>
</employee>
<employee>
<firstname>Paul</firstname>
<lastname>McNealy</lastname>
</employee>
<employee>
<firstname>Vaibhav</firstname>
<lastname>Pandey</lastname>
</employee>
</organization>