Need to rewrite the SAX parser, followed a bad example.