class BetterDefaultHandler extends DefaultHandler {

    @Override
    public void startElement(String uri, String localName, String qName, Attributes attributes)
    {
        myElementStack.push(new SaxElement(uri, localName, qName, attributes));
        myCurrentValue.setLength(0);
    }

}