Re: [Htmlparser-developer] NodeIterator and SimpleNodeIterator
Brought to you by:
derrickoswald
From: Joseph R. <jmr...@tg...> - 2003-04-04 19:10:20
|
Somik Raha wrote: > The difference is subtle. NodeIterator throws > exceptions. SimpleNodeIterator does not. This was bcos > a SimpleNodeIterator used inside a collection would > not need to throw parser exception, as it is not > parsing - just iterating. However, a NodeIterator > requires its implementations to throw exceptions > depending on the parse. > One solution to your problem could be - have > NodeList return a NodeIterator as well. What do you > think ? You mean have a second method which would return a NodeIterator instead of a simpleNodeIterator? That would work. Then I could just use that method instead of the existing one when I wanted to recurse, and all would be fine. _____________________________________________________________ Joe Robins Tel: 212-918-5057 Thaumaturgix, Inc. Fax: 212-918-5001 19 W. 44th St., 18th Floor Email: jmr...@tg... New York, NY 10036 http://www.tgix.com thau'ma-tur-gy, n. the working of miracles. |