Пример #1
0
  private NodeSource getNodeSourceByRelativePath(String tag) {
    String[] tags = tag.split("/");
    NodeSource select = this;

    for (int i = 0; i < tags.length; i++) {
      select = select.getChildByTagName(tags[i]);

      if (select == null) {
        return null;
      }
    }

    return select;
  }