in a C# project written with MVC1 I have to retrieve a XML message, add some nodes to it and then with the new XML generated display the data using xslt.
I could do it just creating a method in the controller which displays the view, and in this one I retrieve and modify the XML which is used in the xslt code. But I wonder if there’s a way of creating the XML in the controller and pass it to the view?
Thanks!!
An XSL transformation can create html from XML, allowing you to add any nodes you like.
So if your view allows for html then I suggest you do exactly that.
You can import XML and apply XSLT with some C# statements, and then have a browser show the resulting html, I suppose.