public String getQName(String uri, String localName) throws SAXException {
            String prefix = getPrefix(uri);
            if (prefix.length() > 0) {
                return prefix + ":" + localName;
            } else {
                return localName;
            }
        }
Writes the given characters with XML meta characters escaped.

@param ch        character array
@param from      start position in the array
@param to        end position in the array
@param attribute whether the characters should be escaped as
                 an attribute value or normal character content
@throws SAXException if the characters could not be written
tika-core/src/main/java/org/apache/tika/sax/ToXMLContentHandler.java