Search Directory of XML files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

All

I have a directory of approximately 300 xml files that contain items and
sales data and I want to search all of the files and read the item and sales
elements from the files to aggregate together.

Can anyone advise the best way to read the data from the xml files and store
it somewhere to use later, maybe SQL Server?

Thanks for any assistance that can be provided.
 
All

I have a directory of approximately 300 xml files that contain items and
sales data and I want to search all of the files and read the item and sales
elements from the files to aggregate together.

Can anyone advise the best way to read the data from the xml files and store
it somewhere to use later, maybe SQL Server?

Thanks for any assistance that can be provided.

I would use the Dir function to lookup the list of filenames, and
then use the XML DOM to parse the data in the XML files.
 
Joe Cool said:
I have a directory of approximately 300 xml files that contain items and
sales data and I want to search all of the files and read the item and
sales
elements from the files to aggregate together.
[...]
I would use the Dir function to lookup the list of filenames

I think that using 'System.IO.Directory.GetFiles' is more comfortable than
using 'Dir'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top