public XMLWriter forceAttribute(Utf8String name, Object value) {
        String stringValue = value!=null ? value.toString() : "";
        allowAttribute();
        return w(SPACE).w(name).w(ATTRIBUTE_START).wTranscode(XML.xmlEscape(stringValue,true)).w(ATTRIBUTE_END);
    }
Writes an attribute by XML.xmlEscape(value.toString(),false)

@param name the name of the attribute. An exception is thrown if this is null
@param value the value of the attribute. The empty string if the attribute is null or empty
vespajlib/src/main/java/com/yahoo/text/XMLWriter.java