RE: [Htmlparser-developer] Label Tag
Brought to you by:
derrickoswald
From: <dha...@or...> - 2003-05-05 07:21:11
|
>> Now for the setLabel method of LabelTag. Considering all things(i.e. as >> much as my mind can think of), how about using a NodeList as a >> parameter? Developers can either use the orginal NodeList with some >> modifications or create an entirely new one and pass it to the method >> which in turn will effetively replace the childTags variable in >> CompositeTag. An overloaded String parameter based one can also be given >> with information related to its possible slow performance due to >> internal parsing. All this is only to shield users from inner-level >> code. Otherwise everything that is required to be done can get done but >> only after getting some knowledge over these mailing lists......thanx to >> somik and Derrick. > It is doubtful that users of the parser will normally need this. Advanced > users would - who write their own scanners. We'd probably like them to know > something about the internals - not too much of course. Striking the right > balance is hard. Its always good to revisit a problem. Now that you know > what you do, what do you think is the minimum and simplest, given that you > don't want to lose performance ? (You are in the advanced user category now) Lets go in for the NodeList based approach. (However I do believe that the String absed approach will give a lot of flexibility even though it may impact performance.......which may not be crucial to all). > Hmm.. I seem to have misplaced them (apologies). Can you mail them to > Derrick ? > Derrick-> Dhaval is inside a firewall, and does not have access to our CVS > repository. Will do. Derrick, I'll take the latest sources and give my changes over them. Also will add removeAll method to NodeList. Regards, Dhaval |