code: public String getParentXPath() {
          Iterator<Level> levelIterator = path.descendingIterator();
          if (levelIterator.hasNext()) {
              levelIterator.next();
          }
          return getXPath(levelIterator);
      }
docs: Stringifies the XPath of the current node's parent.