Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. ATOM and RSS parser?

ATOM and RSS parser?

Scheduled Pinned Locked Moved The Lounge
csharpxmltutorialquestion
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Azel Low
    wrote on last edited by
    #1

    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)

    P W R 3 Replies Last reply
    0
    • A Azel Low

      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)

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • A Azel Low

        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)

        W Offline
        W Offline
        Weiye Chen
        wrote on last edited by
        #3

        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...

        O 1 Reply Last reply
        0
        • P Paul Watson

          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

          A Offline
          A Offline
          Azel Low
          wrote on last edited by
          #4

          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.

          P 1 Reply Last reply
          0
          • A Azel Low

            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.

            P Offline
            P Offline
            Paul Watson
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • W Weiye Chen

              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...

              O Offline
              O Offline
              One Stone
              wrote on last edited by
              #6

              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

              W 1 Reply Last reply
              0
              • A Azel Low

                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)

                R Offline
                R Offline
                Rocky Moore
                wrote on last edited by
                #7

                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)

                1 Reply Last reply
                0
                • O One Stone

                  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

                  W Offline
                  W Offline
                  Weiye Chen
                  wrote on last edited by
                  #8

                  Oops! Weiye Chen Life is hard, yet we are made of flesh...

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups