There\'s an XML stream which I need to parse. Since I only need to do it once and build my java objects, SAX looks like the natural choice. I\'m extending DefaultHandler and
I strongly recommend to stop parsing yourself, and grab good XML data-binding library. XStream (http://x-stream.github.io/) is may personal favorite, but there many different libraries. It may be even able to parse your POJOs on the spot, without any configuration required (if you use property names and pluralisation to match the XML structure).