I don't want to store an .XML file to a location on the hard drive (that I need to care about); I want it to be stored beneath the project's App_Data folder.
I will need a multitude of these, with names that will be calculated at runtime, such as "gramps_minority_201509.xml", "hijomio_carta_20151101_20151205.xml", etc.
I want to save the contents of DataTables to these XML files and later read from them when rendering pages (the XML file contents will populate grids on the pages).
XML files can be added at design time to the App_Data folder by selecting Add -> New Item... -> Visual C# -> Data from App_Data folder context menu, and then selecting "XML File" from the list there.
However, at that point you provide a name for the XML file; as noted, I need to names these "on the fly" and there will ultimately be many thousands of them.
So how can I create these XML files in code, saving the contents of DataTables to them?
UPDATE
Or perhaps saving to .json would be even better...