Creates a NodeIterator.
NodeIterator({ required this.document, required this.startNode, this.endNode, });