-3

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"?>

1
  • 3
    Your question is very vague. I suggest you to provide more details about what you want to parse and the efforts which you have made to do the same. Commented Apr 24, 2015 at 5:00

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

1 Comment

If the file is huge, as stated in the question, I'm not convinced it is a good idea to perform DOM parsing.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.