Opening an XML File in Excel

Hello:

We have an XML file that we would like to open in Excel.  We have tried two methods.  Both have failed.

First, we tried opening Excel, browsing out to the file, and simply opening the file.  But, upon trying to do so and using one of the suggested methods, we get an error saying "cannot load the specified XML".

Also, we have tried opening the XML file by opening Excel, choosing "Data", "Get Data", "From File", and "From XML", we get the error message "XML processing failed...Data at the root level is invalid".

How can we, then, open an XML file in Excel?

Thank you!

John
John EllisAsked:
Who is Participating?
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.

Mike in ITIT System AdministratorCommented:
It sounds like the xml file you are trying to open doesn't have the correct header information that Excel is expecting. You could try opening it with something like Notepad++ and using the XML Tools plugin to format it and see if something is missing at the top.

It might be missing some part of the header like:
<?xml version="1.0" encoding="utf-8"?>

Open in new window

0

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
John EllisAuthor Commented:
Thank you, for pointing that out, Mike!  Much appreciated!

Besides formatting the file, though, is there another means of doing this?

Thanks, again!

John
0
Mike in ITIT System AdministratorCommented:
Formatting the file just makes it easier to find and correct any format related errors. If you know XML really well you could probably do it without the formatting, but formatting and syntax highlighting will make it much easier.

I know that Notepad++ has built-in syntax highlighting for XML, the XML Tools is a plugin though that you will have to get in addition to Notepad++.
1
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

John EllisAuthor Commented:
Hi:

I still would like an easier way of doing this.  Is there a free tool that is downloadable perhaps that can open an XML file?

I suppose this does not have to be done in Excel.  I just want to be able to view the data in the file a lot easier than what is offered by opening the file in, say, Notepad.

Thanks, again, for your thoughts!

John
0
Mike in ITIT System AdministratorCommented:
Notepad++ is free, but it is just a notepad. If you do a search in Google for "XML viewer free" there are several options that you could try. Not sure exactly what would work best for you.
0
TracyVBA DeveloperCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Mike in IT (https:#a42440352)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

broomee9
Experts-Exchange Cleanup Volunteer
0
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
XML

From novice to tech pro — start learning today.