code: public Iterable<XElement> childrenWithName(String name) {
          List<XElement> result = new ArrayList<>(children.size() + 1);
          for (XElement e : children) {
              if (e.name.equals(name)) {
                  result.add(e);
              }
          }
          return result;
      }
docs: Returns an iterator which enumerates all children with the given name.
  @param name the name of the children to select
  @return the iterator