code: static String getStructureName(final char[] buffer, final int offset, final int len) {
  
          final int index = TextUtil.binarySearch(true, ALL_STANDARD_NAMES, buffer, offset, len);
          if (index < 0) {
              return new String(buffer, offset, len);
          }
  
          return ALL_STANDARD_NAMES[index];
  
      }
docs: This method will try to avoid creating new strings for each structure name (element/attribute)