Re: [Informa-developer] parsing refactoring question
Status: Beta
Brought to you by:
niko_schmuck
From: Niko S. <nik...@na...> - 2003-10-28 20:56:15
|
Hi Mark, since I'm very busy at the moment just a short answer (please see inline): Mark Mascolino-MR wrote: > Here are a couple of other observations. One is that if JDK 1.4 is being > used, LinkedHashMap is used for the items, thus assuring that they are > retrievable in the order their appear in the RSS feed. Would it make more > sense to introduce a dependancy on Jakarta Commons Collections' > implementation (called SequencedHashMap). That way JDK 1.3 and 1.4 users > get the same functionality. AFAIK, Michael has updated the Channel implementation so that for 1.3 the plain HashMap is used: """ Subject: [Informa-commits] informa CHANGELOG.txt,1.23,1.24 Date: Sat, 11 Oct 2003 09:28:35 -0700 From: mh...@us... To: inf...@li... Log Message: Modified Channel to use a LinkedHashMap for JDK 1.4+, and a HashMap for earlier versions """ But I agree your proposal using Commons' Collections would be better :-) > My other question stems from looking at the source for the new RSSParser. > Is the goal of Informa to be a strict parser or one that is very liberal. I > say this because I see some startsWith() methods instead of equals() as well > as not checking the XML namespaces when evaluating a RSS 1.0 document. Indeed (since so many different RSS usages are out there) we try to be more liberal ... Hope this helps, Niko |