I have to build an xml output that represents a data structured for a flex chart placed in the view. I have several options:
have the controller create the xml (using data from the DB), and return it to a view that actually does nothing, since everything is ready.
have the view strongly typed to the data model from the DB, and render the xml declaratively in the view.
create an Html extension method that will contain the logic to create the xml and use it on the view.
in terms of separation of concern, what would be the best option? in the future I don't expect many changes to the xml structure, maybe now and then. I tend to select option 1 as it is more testable, and I feel more comfortable with the controller preparing the xml data.