code: public static Iterator<Element> iterator(Element parent) {
          return parent != null ? new ChildrenIterator(parent) : Collections.<Element>emptyList().iterator();
      }
docs: Returns an iterator over the children of the given parent element. The iterator supports the {@link
  Iterator#remove()} operation which removes the current element from its parent.