Changed DOM parser to SAX parser