Solved

C# example to unzip and read xml files

Posted on 2014-09-10
1
519 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

773 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