Help with converting from excel to xml using VB.NET


How do you convert an xml file to excel (.xls) using VB.NET with the data elements as column headers?


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
Excel to XML (as the title says) or XML to Excel (as the body says)?

For both cases, I have used Aspose library (commercial product - not free). An example is available from

A free but limited solution is explained on my blog at
vcharlesAuthor Commented:

I meant from XML to Excel, unfortunately I will not be able to use a commercial product. I will look into the second link.


Have you tried the free online tool @ ?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

vcharlesAuthor Commented:
I will look into it.


You are currently able to read xml file into your program so all you need to do is loop through your datatables and dump the data in excel either using ADO.NET or Excel Interop.
vcharlesAuthor Commented:
Thank You.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.