XML Converter · Tutorial
How to open XML data in Excel or Google Sheets
5 min readbeginnerUpdated
A system exports its data as XML, but you need it in a spreadsheet. You will convert the records to CSV, choose the separator your spreadsheet expects and open the file.
What you need
- The XML Converter set to XML → CSV
- Excel, Google Sheets or LibreOffice
Steps
Load the export
Load the example book catalogue. The status line shows that three rows were found at
catalog/book.Check the columns
The
idandformatattributes become columns, and so doauthor,titleandpublished.<price currency="EUR">29.90</price>becomes two columns,price.currencyandprice.#text.id,format,author,title,price.currency,price.#text,published bk101,paperback,"Okafor, Amara",Practical XML,EUR,29.90,2025-03-14Pick the separator
If your spreadsheet uses commas as decimal separators, choose Semicolon so values like 29.90 stay in their own cells.
Open the file
Download
converted.csvand open it, or in Google Sheets use File › Import. Rename the price columns if you like.
Try it yourself
Opens the XML Converter with this tutorial's sample loaded.
Common mistakes
- The wrong record element
- If the rows look wrong, type the path to the records you want, such as
catalog/book. - Dates turned into numbers
- Spreadsheets may reformat dates. Import the column as text if you need the original format.
Next steps
Go back to the XML Converter, or keep going with one of these: