@Override
    public void endElement(String uri, String localName, String name) {
        addMetadata(buffer.toString());
        buffer.setLength(0);
    }
This adds Metadata entries with a specified name for
the textual content of a node (if present), and
all attribute values passed through the matcher
(but not their names).

@deprecated Use the {@link AttributeMetadataHandler} and
{@link ElementMetadataHandler} classes instead
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-xml-module/src/main/java/org/apache/tika/parser/xml/MetadataHandler.java