[Htmlparser-developer] Re: Htmlparser-developer digest, Vol 1 #136 - 3 msgs
Brought to you by:
derrickoswald
From: Sam J. <ga...@yh...> - 2002-12-11 23:27:23
|
Hi Somik, Sorry that my mails are not attaching to the thread properly. I'm on digest, so when I reply to the digest meesage I think a new thread get automatically started, and the sourceforge mail interface doesn't let me reply directly to your messages Thanks for your suggestion below. As far as I can see from the code the parse method on HTMLParser is not being called. In fact it uses exactly the think you describe in your mail. I didn't really write this code. It's still basically the NeuroGridHTMLParser that you wrote a while back, modified into my coding format. Please find the code appended to this email. Both the links I have been parsing are specified in the NeuroGridHTMLParserTest.java file. Thanks in advance. CHEERS> SAM Somik wrote: >Sorry, I just saw your other mail again with the >output. I see the problem - > >You must be calling the parse method in >HTMLParser.java. That is only a demo. As mentioned in >the docs, you should be doing something like : > >(for HTMLEnumeration e = >parser.elements();e.hasMoreNodes();) { > HTMLNode node = e.nextHTMLNode(); > // create summary here >} > >The call to parse has the printing stuff which prints >all the details of the nodes (calling node.print()). > >If this does not help, can you post your complete >parsing program ? > |