From: Brad C. <yo...@br...> - 2005-06-02 14:54:58
|
It doesn't look like that method was ever intended to be used externally. The only visible difference of using DescendantElementsIterator over Iterator is the nextElement() method that keeps you from needing to cast next() to HtmlElement. Brad C --- Tim R J Langford <ti...@mu...> wrote: > Hello Guys, > > When I try to use the following code with HTMLUnit 1.6 : > > >> DescendantElementsIterator elements = page.getAllHtmlChildElements(); > > > I get the following error for the import statement of > DescendantElementsIterator. > > >> > com.gargoylesoftware.htmlunit.html.DomNode.DescendantElementsIterator is > not visible. > > because it is a protected inner class. I can of course assign it to an > instance of Iterator, but I was wondering the intention of the inner > class as it seems a little unintuative. Am I using this method call > incorrectly? > > Thanks for your time. > > Tim |