docs: public static String escapeElementXML(String in) {
      int leng = in.length();
      StringBuilder sb = new StringBuilder(leng);
      for (int i = 0; i < leng; i++) {
        char c = in.charAt(i);
        if (c == '&') {
          sb.append("&amp;");
        } else if (c == '<') {
          sb.append("&lt;");
        } else if (c == '>') {
          sb.append("&gt;");
        } else {
          sb.append(c);
        }
      }
      return sb.toString();
    }