Re: [Htmlparser-user] HTMLEnumeration multiple use?
Brought to you by:
derrickoswald
From: Somik R. <so...@ya...> - 2002-11-09 05:14:13
|
Hi Steve, > I had expected the 2nd call to htmlEnum to give me a new enumeration > which I could step through, but the method htmlEnum.hasMoreNodes() > returns FALSE. This is bcos, when you create the HTMLParser object, the io connections are established, and the elements that you run through also advances the internal cursor. A quick solution for you is to re-create the parser object. However, it would be good to support multiple (sequential) iterators. Do you have time to look into the source ? You will need to only work with HTMLParser.java. We would be glad to put this in for the production release. Regards, Somik |