public void addMetadata(String value) {
        if (value.length() > 0) {
            String previous = metadata.get(name);
            if (previous != null && previous.length() > 0) {
                value = previous + ", " + value;
            }

            if (this.property != null) {
                metadata.set(property, value);
            } else {
                metadata.set(name, value);
            }
        }
    }
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