Solved

C# example to unzip and read xml files

Posted on 2014-09-10
1
499 Views
Last Modified: 2014-09-19
I have 2,800 zip files, each zip file contains 20 xml files.
I need an example using C# or visual basic, about how to unzip and read xml file content and save the information to sql table.

It would be good to unzip and read xml content for one zip file at a time.

Thank you for any help related to this issue.


best regards
smile be brave
0
Comment
Question by:smilebebrave
1 Comment
 
LVL 33

Accepted Solution

by:
ste5an earned 500 total points
ID: 40314505
Extract the zip into a stream using either built-in System.IO.Compression or DotNetZip. Use e.g. XDocument.Load() to read the stream into a XML document.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now