XML based News page in ASP.NET MVC
-
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/
-
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/
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
-
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
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.