What are the benefits of XML Data Model in DataSet Model?
In my current job, we have a .NET / SQL Server based CMS. While setting up multiple modules for some internal use, I was a bit surprised to see that instead of having APIs that returned data via your typical result set bound to a DataGrid / DataList / Repeater control, the APIs returned XML node / collection which is then passed to the XSLT transformation and displayed on the page that way.
What are the advantages of using such a model?
source to share
Using XSLT transformations will allow you to use a different layout and formatting than standard .Net web controls. Some people discourage the use of .Net grids because they can include more HTML than necessary and because if they are not handled carefully, they can bloat the ViewState.
Recent discussion here is about .Net networks being bloatware (but developers use them anyway).
source to share
By setting up the datasource and xml that the page just transforms, you also instantly create a simple "web service" that can be used by other software. For example, it would be trivial to turn this grid into an RSS feed, or write a program to periodically flush this data and send more urgent alerts.
source to share