Re: [Htmlparser-user] HTML parser 1.1
Brought to you by:
derrickoswald
From: Somik R. <so...@ya...> - 2002-04-08 04:22:46
|
Hi Raghav > when would be this HTMLparser 1.1 out? As soon as I can wrap it up. Technically, the code is ready and already checked into CVS. I need to do the process of creating a release - make some documentation, check everything is ok, .. If I had some help I could wrap it up sooner. > I am not sure, but to me the way htmlparser parses is it gives me the tag > parameter of the first line in the above snippet of html code, when I do > Hashtable table = tag.parseParameters(); > it is looking for parameters inside <FORM ..... >, but not <FORM > .....</FORM> Yes - parseParameters() will give you the stuff inside the FORM tag. That is what I call "microscopic" parsing. But to get the remaining tags - till you encounter </FORM> you need to do "macroscopic" parsing. This is not hard- check HTMLAppletScanner as an example. In a nutshell - concept is very simple. The scan method provides you with a reader. So you are to use that reader to read ahead and get the next tags. This is simple bcos the reader will automatically identify the correct tags, and the mechanism is very similar to using the parser to get the tags you want. The HTMLLinkScanner among others, also works on the same principle. Bytway - I think we should take this discussion to the Developer list. Regards, Somik _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |