I have a website with lot of content which is being grabbed from sql database in xml format. I am using XML publish method in asp.net to publish all the content through menu’s. Now we are having a debate should we use HTML to display content? Can someone give me good and bad points about using one or the other?
Share
HTML uses semantics that browsers, screen readers, search engines and new people joining your project know about. Your own XML application doesn’t.
Deliver HTML to browsers.
If you are designing a web based API, then arbitrary XML is a decent choice (unless there is a preexisting XML application that already covers your use case (or even, thanks to namespaces, part of it)).