If our data had a simple structure without any sub-fields, we could skip the query editor and press the Load button to directly load the data into the workbook. For example, the Name field contains a First and Last field for the first and last names of the person. Since the Name and Email fields in the XML data contain sub-fields we see Table listed underneath the column headings in the preview. Notice that it’s in a nice table format? That’s automatically done by power query.
The Navigator window will now open and we can see a preview of the data from the XML file. This will open a file selection window and we can navigate to the location of the XML file and press the Import button.
Select Get Data found in the Get & Transform Data section.We can quickly create a new query that imports the XML file into Excel. In this example we will use a simple XML file containing mock contact information with names, emails, cities and countries. It lists all the pages on the site and includes information about when the page was last updated, how often the page is updated and how much weight search engines should give that page. This is literally a map of the website for bots like Google to crawl and index.Ĭheck out the XML sitemap on one of my favourite Excel sites. Most websites have a sitemap.xml file which is an XML file of the website’s link structure. You can open any of the XML files in your text editor of choice to view the inner workings of an Excel file.Īnother common example can be found across the web.
#Microsoft open xml converter error opens read only zip#
zip and then exploring the files in the zip folder. Try it for yourself by taking any Excel file and changing the extension from. You don’t need to look very far to find an example, Excel files are really just a collection of XML files in a zip folder.