Hi Krishnan,
It seems that you want to read the contents of an XML file and display the text of each element.
If this is the case than follw this steps:
Step I : Download dom4j.jar and place this into the classpath.
Step II : Suppose the XML file is testing.xml in the
test folder of your C drive.
testing.xml
Step III: The Code snippet for ReadXml.java
Hope this will solve your problem.