ATOM and RSS parser?
-
Hi, I am a rather newbie in XML and C# and do not have much time (due to work) to pick them up. I am trying to come up with a simple aggregator to suit my work needs (personal project). Basically, i am looking for a ATOM (AND) RSS parser that allows me to parse in any XML uri and the parser will discover the format and parse accordingly. (Paid, Free, Open Source is fine with me) Example (not sure if i am getting it right here): 1) Load a feed uri --> discover if it is ATOM or RSS --> send to the correct parser --> return document 2) Discovery if it is ATOM or RSS --> Load feed uri --> send to the correct parser --> return document -- or -- Any other methods is fine with me Lastly, if possible, to have auto discovery of the presence of an XML feed given a web address will be Great. :) (Hope this not considered as a programming qtns)
-
Hi, I am a rather newbie in XML and C# and do not have much time (due to work) to pick them up. I am trying to come up with a simple aggregator to suit my work needs (personal project). Basically, i am looking for a ATOM (AND) RSS parser that allows me to parse in any XML uri and the parser will discover the format and parse accordingly. (Paid, Free, Open Source is fine with me) Example (not sure if i am getting it right here): 1) Load a feed uri --> discover if it is ATOM or RSS --> send to the correct parser --> return document 2) Discovery if it is ATOM or RSS --> Load feed uri --> send to the correct parser --> return document -- or -- Any other methods is fine with me Lastly, if possible, to have auto discovery of the presence of an XML feed given a web address will be Great. :) (Hope this not considered as a programming qtns)
Figuring out what schema the feed is using is relatively easy, check the DTD/XSD being used. If there is no schema reference then check for the occurence of unique nodes. After that, you already have the document so I am not sure what you mean by "return document". What I would be looking for is a generic feed parser that takes in a document and returns a collection of normalised items that your aggregator can list. It would be simple enough to do using an XSL transform for each original source (RSS, ATOM, RDF etc.) to a standard and simplified format and then into your collection. regards, Paul Watson South Africa The Code Project
-
Hi, I am a rather newbie in XML and C# and do not have much time (due to work) to pick them up. I am trying to come up with a simple aggregator to suit my work needs (personal project). Basically, i am looking for a ATOM (AND) RSS parser that allows me to parse in any XML uri and the parser will discover the format and parse accordingly. (Paid, Free, Open Source is fine with me) Example (not sure if i am getting it right here): 1) Load a feed uri --> discover if it is ATOM or RSS --> send to the correct parser --> return document 2) Discovery if it is ATOM or RSS --> Load feed uri --> send to the correct parser --> return document -- or -- Any other methods is fine with me Lastly, if possible, to have auto discovery of the presence of an XML feed given a web address will be Great. :) (Hope this not considered as a programming qtns)
Azel Low wrote: Hope this not considered as a programming qtns If you ask me, i would say 75% yes. 15% no is because i don't see any syntaxs. :) Weiye Chen Life is hard, yet we are made of flesh...
-
Figuring out what schema the feed is using is relatively easy, check the DTD/XSD being used. If there is no schema reference then check for the occurence of unique nodes. After that, you already have the document so I am not sure what you mean by "return document". What I would be looking for is a generic feed parser that takes in a document and returns a collection of normalised items that your aggregator can list. It would be simple enough to do using an XSL transform for each original source (RSS, ATOM, RDF etc.) to a standard and simplified format and then into your collection. regards, Paul Watson South Africa The Code Project
-
Appreciate if you can point me in the right direction. Been looking for such a parser for a while but only found those in Python and Java but not .NET. Probably was looking in the wrong direction.
Pythonians are more into slinging XML about so that is expected. I don't know of any specific code but Google has some results that you might be able to use. If you don't find anything suitable then write your own and post it here on CP as an article, it would be appreciated. [Edit]RSS 2.0 Framework by Jerry Maguire might be helpful. You could extend it to support ATOM.[/Edit] regards, Paul Watson South Africa The Code Project
-
Azel Low wrote: Hope this not considered as a programming qtns If you ask me, i would say 75% yes. 15% no is because i don't see any syntaxs. :) Weiye Chen Life is hard, yet we are made of flesh...
-
Hi, I am a rather newbie in XML and C# and do not have much time (due to work) to pick them up. I am trying to come up with a simple aggregator to suit my work needs (personal project). Basically, i am looking for a ATOM (AND) RSS parser that allows me to parse in any XML uri and the parser will discover the format and parse accordingly. (Paid, Free, Open Source is fine with me) Example (not sure if i am getting it right here): 1) Load a feed uri --> discover if it is ATOM or RSS --> send to the correct parser --> return document 2) Discovery if it is ATOM or RSS --> Load feed uri --> send to the correct parser --> return document -- or -- Any other methods is fine with me Lastly, if possible, to have auto discovery of the presence of an XML feed given a web address will be Great. :) (Hope this not considered as a programming qtns)
You might look at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-createrssw-aspnet.asp[^] http://scottonwriting.net/sowblog/RssFeed.htm[^] http://www.rssbandit.org/ow.asp?RssBandit[^] Rocky <>< www.HintsAndTips.com - RSS Enabled www.JokesTricksAndStuff.com www.MyQuickPoll.com Me Blogs: wdevs - MSN Spaces (new)
-
Weiye Chen wrote: If you ask me, i would say 75% yes. 15% no is because i don't see any syntaxs. 75+15 = 90 ;P
Oops! Weiye Chen Life is hard, yet we are made of flesh...