Home » Developing U++ » UppHub » RSS Parser/Composer Class For U++
Re: RSS Parser/Composer Class For U++ [message #18290 is a reply to message #18139] |
Sat, 20 September 2008 16:20 |
Oblivion
Messages: 1094 Registered: August 2007
|
Senior Contributor |
|
|
Hi,
I would like to make a proposal about Rss class:
As I mentioned before, I am also working on Rdf, Wap and Atom classes. Since these formats are also in XML format and uses the same basic structure, and the basic elements (RssTag and RssNode) of my Rss class are actually generic classes which can be also used effectively to parse (and create) feeds in this format, wouldn't it be much better to roll them into one package and create a WCSLib (Web Content Syndication Library) for U++? Actually, this won't make any impact on your code (if anyone is already using Rss class), only a header change will make your code work, after this supposed migration (a "WCSLib.h" instead of "Rss.h". In this way, we'll have a standardized/uniform code too (which will make the reading and parsing easy).
All the change I have to do is to rename RssTag and RssNode classes to WCSTag and WCSNode, and then define [Rss/Rdf/Wap/Atom]Tag and [Rss/Rdf/Wap/Atom]Node as types of them, eg.:
typedef WCSTag RssTag;
typedef WCSNode RssNode;
and, files should be:
WCSLib.h (#include header)
[WCSLib.cpp]
/\
/ \
------------ ------------
| | | |
Rss.h Rdf.h Atom.h Wap.h
Rss.cpp Rdf.cpp Atom.cpp Wap.cpp
I would like to know what do you think and your suggestions about WCSLib idea?
Regards.
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sat, 20 September 2008 16:45] Report message to a moderator
|
|
|
|
|
RSS Parser/Composer Class For U++
By: Oblivion on Fri, 12 September 2008 14:48
|
|
|
Re: RSS Parser/Composer Class For U++
By: bytefield on Fri, 12 September 2008 18:43
|
|
|
Re: RSS Parser/Composer Class For U++
By: Oblivion on Fri, 12 September 2008 18:57
|
|
|
Re: RSS Parser/Composer Class For U++
By: captainc on Sat, 13 September 2008 14:10
|
|
|
Re: RSS Parser/Composer Class For U++
By: Oblivion on Sat, 13 September 2008 21:48
|
|
|
Re: RSS Parser/Composer Class For U++
By: Oblivion on Thu, 18 September 2008 20:13
|
|
|
Re: RSS Parser/Composer Class For U++
By: Oblivion on Sat, 20 September 2008 16:20
|
|
|
Re: RSS Parser/Composer Class For U++
By: captainc on Sun, 21 September 2008 03:05
|
|
|
Re: RSS Parser/Composer Class For U++
By: captainc on Sun, 21 September 2008 03:38
|
|
|
Re: RSS Parser/Composer Class For U++
By: amrein on Sun, 21 September 2008 21:19
|
|
|
Re: RSS Parser/Composer Class For U++
By: Oblivion on Mon, 22 September 2008 11:55
|
Goto Forum:
Current Time: Tue May 14 03:22:38 CEST 2024
Total time taken to generate the page: 0.03873 seconds
|