Parsing XML with SAX
import org.apache.xerces.parsers.SAXParser; import org.xml.sax.InputSource; import java.io.FileInputStream; public class MainClass { public static void main(String args[]) throws Exception { SAXParser saxParser = new SAXParser(); saxParser.setContentHandler(new EventHandler()); saxParser.parse(new InputSource(new FileInputStream("games.xml"))); } }