Java – Read XML File – DOM Parser

File.xml

ReadXMLFile.java

Output:

Root element :company
———————–
First Name : prasanna
Last Name : sherekar
Nick Name : pashyaa
Salary : 500000
First Name : james
Last Name : anderson
Nick Name : james
Salary : 200000

Comments are closed here.