Re: [Htmlparser-developer] Re: [Htmlparser-user] HTML parser 1.1
Brought to you by:
derrickoswald
From: Somik R. <so...@ya...> - 2002-04-09 14:42:52
|
Hi Raghav > Begin Tag : SELECT name="pulldown" class="smaller-text"; begins at : 0; ends > at : 44 > > this node which I get is of neither HTMLRemarkNode, HTMLStringNode, > HTMLEndTag. Thats right- this is expected behaviour. The type of this node is HTMLTag. If you downcast to HTMLTag, you can get all the info. Regards, Somik ----- Original Message ----- From: "Raghavender Srimantula" <kin...@ho...> To: <so...@ya...> Cc: <htm...@li...> Sent: Tuesday, April 09, 2002 7:01 PM Subject: [Htmlparser-developer] Re: [Htmlparser-user] HTML parser 1.1 > hi Somik, > question regarding the form parsing. let us say I have this tag > <SELECT name="pulldown" class="smaller-text"> > > so now when I do a > node = reader.readElement(); > > if I do a node.print(), I get > > Begin Tag : SELECT name="pulldown" class="smaller-text"; begins at : 0; ends > at : 44 > > this node which I get is of neither HTMLRemarkNode, HTMLStringNode, > HTMLEndTag. > I am not sure how to classify this. because if I want to take some action > here I need to classify this node. > could you help me out. > Raghav > > > >From: "Somik Raha" <so...@ya...> > >To: "Raghavender Srimantula" <kin...@ho...> > >CC: <htm...@li...> > >Subject: Re: [Htmlparser-user] HTML parser 1.1 > >Date: Mon, 8 Apr 2002 13:04:07 +0900 > > > >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 > >----- Original Message ----- > >From: "Raghavender Srimantula" <kin...@ho...> > >To: <htm...@li...> > >Sent: Monday, April 08, 2002 6:39 AM > >Subject: [Htmlparser-user] HTML parser 1.1 > > > > > > > Hi Somik, > > > when would be this HTMLparser 1.1 out? > > > one more question. to parse the FORM tags, I have a small question. > > > let us say this is a form tag > > > > > > <FORM NAME="LoginForm" METHOD=POST ACTION="urltoInvoke"> > > > <P>User name: > > > <INPUT TYPE="text" NAME="userName" SIZE="10"> > > > <P>Password: > > > <INPUT TYPE="password" NAME="password" SIZE="12"> > > > <P><INPUT TYPE="submit" VALUE="Log in"> > > > <INPUT TYPE="button" VALUE="Cancel" onClick="window.close()"> > > > </FORM> > > > > > > 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> > > > > > > could you suggest me how to go ahead with this. > > > Raghav > > > > > > > > > to extract the INPUT tag parameters > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > > MSN Photos is the easiest way to share and print your photos: > > > http://photos.msn.com/support/worldwide.aspx > > > > > > > > > _______________________________________________ > > > Htmlparser-user mailing list > > > Htm...@li... > > > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > > > > > >_________________________________________________________ > >Do You Yahoo!? > >Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > > _________________________________________________________________ > Join the world's largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > > _______________________________________________ > Htmlparser-developer mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-developer _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |