RE: [Htmlparser-developer] HTMLParser 1.2 - 1.3
Brought to you by:
derrickoswald
From: <dha...@or...> - 2003-05-15 03:59:18
|
> -----Original Message----- > From: somik [mailto:so...@ya...] > Sent: Thursday, May 15, 2003 3:37 AM > To: htmlparser-developer > Cc: somik > Subject: Re: [Htmlparser-developer] HTMLParser 1.2 - 1.3 > > > Dhaval Udani wrote: > > Why does the NodeVisitor not have a method called > visitNode() analogous to > > visitTag()? > > I have the same question for you - why do you want > visitNode() ? Simply bcos > it can be there, or bcos it solves a problem. > I thought that since Tag extends from Node, a visitNode() method would be appropriate. Apart from that if I want to search for some tags that I have not registered (say a <HTML> tag or a <HEAD> tag) I could use the visitNode mechanism to do it. A similar argument can arise as to why have visitTag() at all when you have specialized visitImageTag() and visitLinkTag() etc. Dhaval |