@Override
    public void startElement(String uri, String localName, String tag, Attributes attributes) {
        if (tag.equals("teiHeader")) {
            inHeader = true;
            if (showHeader) {
                buffer.append(" _CABECERA_INICIAL_ ");
            }
        }

        if (tag.equals("note")) {
            inNote = true;
        }

        if (tag.equals("docEdition") || tag.equals("front")) {
            inDocEdition = true;
        }

        if (tag.equals("foreign")) {
            inForeign = true;
        }

        if (tag.equals("abbr")) {
            inAbbr = true;
        }
    }