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. Web Development
  3. ASP.NET
  4. XML based News page in ASP.NET MVC

XML based News page in ASP.NET MVC

Scheduled Pinned Locked Moved ASP.NET
asp-nettutorialquestioncsharpcom
3 Posts 2 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
    Alberto Bencivenni
    wrote on last edited by
    #1

    How do I build an XML based News page in ASP.NET MVC? I would like to enumerate XML files inside a folder and build a list of summaries on the page. Once the visitor clicks on one of the summaries, I would like to load the associated XML file and render the full news content (with nice formatting included). An example of the summaries page can be found [1] while and example of the single XML news page rendered can be found here [2]? Should I write everything from scratch or there is a good tutorial to start with somewhere? Thanks. [1]:https://www.devexpress.com/Home/Announces/2017-Universal-17-1.xml [2]:https://www.devexpress.com/Home/Announces/

    Richard DeemingR 1 Reply Last reply
    0
    • A Alberto Bencivenni

      How do I build an XML based News page in ASP.NET MVC? I would like to enumerate XML files inside a folder and build a list of summaries on the page. Once the visitor clicks on one of the summaries, I would like to load the associated XML file and render the full news content (with nice formatting included). An example of the summaries page can be found [1] while and example of the single XML news page rendered can be found here [2]? Should I write everything from scratch or there is a good tutorial to start with somewhere? Thanks. [1]:https://www.devexpress.com/Home/Announces/2017-Universal-17-1.xml [2]:https://www.devexpress.com/Home/Announces/

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      It depends on the structure of the XML files. Do they all share the same structure? If not, how do you identify which structure each file has? If they're RSS or Atom feeds, the SyndicationFeed[^] class is probably the best place to start: Build an RSS reader in 5 minutes | Thomas Levesque's .NET blog[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      A 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        It depends on the structure of the XML files. Do they all share the same structure? If not, how do you identify which structure each file has? If they're RSS or Atom feeds, the SyndicationFeed[^] class is probably the best place to start: Build an RSS reader in 5 minutes | Thomas Levesque's .NET blog[^]


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        A Offline
        A Offline
        Alberto Bencivenni
        wrote on last edited by
        #3

        XML file will be manually created by us and they should support formatting in some way. As you can see from the links, this News are nicely formatted (I mean titles, sub-titles, etc.) Thanks.

        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