I’m creating a DotNetNuke module that needs to read entries from a SQL Server table called SalesOrders. The module must only display those records where STatus = Pending. I need to create an XML file from my database table that selects records per above. How is this done in Visual Studio 2010? I started to use the XML Schema Explorer to create the XSD by hand. Not sure if this is correct approach? Note that I’ll need to do XSL transformation so that I can make the contents of the XML file available to my module, so that I can permit the user to select Invoices within a given date range. In the module, the user needs to enable a checkbox for each invoice read from the XML file and mark them as paid.
Am I taking the proper approach relative to creating the XSD by hand, or is there a more automated approach?
Thanks much!!
This Code will fill a datatable then write it to an xml string:
you can use different methods to fill the datatable if you want