@Override
    public String getText() {
        switch(currentEvt){
            case CDATA:
            case CHARACTERS:
            case COMMENT:
            case DTD:
            case ENTITY_REFERENCE:
                return ctext;
            default:
                throw new IllegalStateException("getText not valid for event type " + currentEvt);
        }
        
    }