tags:

views:

724

answers:

2

What is the best method to parse multiple, discrete, custom XML documents with Java?

+2  A: 

You will want to use org.xml.sax.XMLReader (http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/XMLReader.html).

jcsalterego
+3  A: 

I would use Stax to parse XML, it's fast and easy to use. I've been using it on my last project to parse XML files up to 24MB. There's a nice introduction on java.net, which tells you everything you need to know to get started.

david