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

  1. Load the export

    Load the example book catalogue. The status line shows that three rows were found at catalog/book.

  2. Check the columns

    The id and format attributes become columns, and so do author, title and published. <price currency="EUR">29.90</price> becomes two columns, price.currency and price.#text.

    id,format,author,title,price.currency,price.#text,published
    bk101,paperback,"Okafor, Amara",Practical XML,EUR,29.90,2025-03-14
  3. Pick the separator

    If your spreadsheet uses commas as decimal separators, choose Semicolon so values like 29.90 stay in their own cells.

  4. Open the file

    Download converted.csv and 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.

Try it now

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: