Add Iterator interface to Document