code: @SuppressWarnings("RedundantStringConstructorCall") // avoid String substring memory leak in JDK 1.6
      private String trimNonXmlElements(String path) {
          if(path != null && path.length() > 0) {
              int pos = path.lastIndexOf(">");
              if(pos > -1) {
                  path = new String(path.substring(0, pos+1));
              }
          }
          return path;
      }
docs: /*
  This method trims non XML element data from the end of a path
  e.g. <float name="score">12.34567 would become <float name="score">, 12.34567 would be stripped out