code: public void append(final String string, final boolean encode) {
  		if (encode) {
  			appendOptional(WebUtilities.encode(string));
  		} else {
  			// unescaped content still has to be XML compliant.
  			write(HtmlToXMLUtil.unescapeToXML(string));
  		}
  	}
docs: Appends the string to this XmlStringBuilder. XML values are not escaped.
  
  @param string the String to append.
  @param encode true to encode the string before output, false to output as is