I have a huge XML file without an XML schema, and I would like to parse and extract some information from it. How do I parse XML with Java?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
I have a huge XML file without an XML schema, and I would like to parse and extract some information from it. How do I parse XML with Java?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
This can be done in 2 ways using Using DOM Parser Using SAX Parser Using StAX Parser
for code please refer the following tutorials
http://www.java-samples.com/showtutorial.php?tutorialid=152
http://www.javacodegeeks.com/2013/05/parsing-xml-using-dom-sax-and-stax-parser-in-java.html