• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

VS 2005 - Using multiple XML files in one XMLdatasource

Hello everyone,

I have a CMS that stores data from input forms into individual xml files, one file for each record. Is it possible to configure a an XMLdatasource to use all the xml files in a particular folder as a datasource? I ultimately want to list all the records in a GridView. I'm using MS Visual Studio 2005.

Thank you.
2 Solutions
Bob LearnedCommented:
I don't believe that an XmlDataSource can do that without a little pre-processing of the XML, so that you have a single entity...
No, there's not direct way.

And I think what TheLearnedOne means when he said 'a little pre-processing of the XML' is that you can create an xml string of all the xml files (well-formed, of course) that you have and then assign that as the datasource of your gridview.
jjm108Author Commented:
Thanks for your feedback. Saves me time trying to do figure out how to do something that isn't possible.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now