Re: [Htmlparser-user] HTMLNode query
Brought to you by:
derrickoswald
From: Somik R. <so...@ya...> - 2002-08-01 02:42:12
|
I am trying to write my own scanner class. In the scan method what should be ideally returned? i.e. the Javadoc says that the return type is an HTMLNOde however I am not clear as to exactly what shoudl be returned. Can anyone help me out here? HTMLNode is only an abstract class. You should not worry about = implementing it completely, because it is already done in the HTMLTag = class. So your new tag type object should derive from HTMLTag. Take a look at the implementation of some of the existing scanners = (particularly HTMLMetaTagScanner).=20 Bytway, if you writing a new type of scanner - from your earlier mail - = the HTMLInputTagScanner, you might want to check it in to the main code = base so we can put it in with the main distribution and you'd also get = support for maintaining it. If you need CVS developer access, sign up at = http://sourceforge.net/account/register.php and send me your sourceforge = id. You can directly check in your code into CVS, and that way = collaboration becomes easier and faster. Cheers, Somik |