Can't extract any div's, redux.

Jan SokoĊ‚owski <[email protected]> Sat, 30 Jul 2011 22:21:01 +0200
Newsgroups gmane.comp.parsers.htmlparser.user
Message-ID <CAJP48yGtBKJt4h9uS29tXB1Se2HKWBfXjXykxsd6SsngaMhHWw@mail.gmail.com>
Thanks for answering! However, I'm afraid it didn't help me much :(

So, all I've changed in the code is the nodeFilter object ( now
constructed as new AndFilter(new TagNameFilter("div"),new
HasAttributeFilter("storytext")); )
Then, I do the
for(NodeIterator e = parser.elements(); e.hasMoreNodes();){
                e.nextNode().collectInto(nodeList, nodeFilter);
            }

And according to nodeLIst.toNodeArray().lenght, there are no matching nodes.

Therefore, I don't have anything to pass to anything you've said, not
to mention I don't know, for example, what a StringBean is (that
means, I've read the javadoc on your page, but I don't have the
foggiest idea how to use it there) (And why couldn't I use the
toPlainTextString() method? I'd like to get the inner HTML of div
without removing any tags there, which StringBean removes, as I've
noticed, unless I've misunderstood it) :(
I'd be very thankful if you could elaborate more on what should I do
there to make it work, please.

By the way, how do I respond to the posts on that mailing list? I
can't find the response option anywhere?

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey