I want to write a .aspx file that returns data in a format that can be used as an XML data source.

I think I should be able to use the xmltextWriter object, but all the examples I find seem to involve writing the output to a file..

I have a number of users accessing the site and am currently using a static XML file to populate a table of data....What I want to do is use the .aspx page as the datasource of my table and it return a properly formatted XML document...

I guess I could just build a string of XML code and return that, but I'm sure I should be able to use the built in .NET XML functions...

Does anyone know how to do this? Iive tried googling various terms, but I only seem to get saving it to a file..As I could have many users accessing the same XML feed at the same time, I want to be able to create it on the fly.

Hope that makes sense...Any ideas?