Data Import & Export

Export Excel Data to XML Using an XML Schema

Rana GarciaRana Garcia Nov 18, 2026 869 views

Question details

The user wants to map an XML schema to Excel data and export it as an XML file.

Export Excel Data to XML Using an XML Schema
Product
Excel for Microsoft 365
Device & OS
Mac
Scenario
The user has an XML schema and wants to map its elements to worksheet cells before exporting the data.
Observed behavior
The Developer tab is enabled, but the XML Source command is missing in Excel for Microsoft 365 on Mac.
Before you start

Have the workbook and XML schema file (.xsd) available. If XML Source is missing on your Mac, use a Windows desktop version of Excel that supports XML mapping.

Solution 1Recommended

Map the Schema and Export XML in Excel for Windows

Use Excel for Windows when the XML Source command is unavailable in Excel for Mac.

Excel for Microsoft 365 on Mac has limited XML mapping support. The Windows desktop version provides the XML Source pane needed for this workflow.

1
Open the workbook in Windows

Open the workbook in desktop Excel for Windows and make the .xsd schema file available on the same computer.

2
Enable the Developer tab

Go to File > Options > Customize Ribbon, select Developer under Main Tabs, and click OK.

3
Add the schema

Select Developer > Source. In the XML Source pane, click XML Maps > Add, select the .xsd file, and click Open.

4
Map the elements

In the XML Source pane, drag schema elements to the corresponding worksheet cells or columns containing the data you want to export.

5
Export the XML file

Select Developer > Export, choose the XML map if prompted, enter a file name, and save the XML file.

Map the Schema and Export XML in Excel for Windows
Check the map if export fails: The XML map must be exportable, and the mapped data must conform to the schema. Review the mapped elements and any Excel error message before trying Developer > Export again.
Free Microsoft Office alternative

Work with Excel Workbooks in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Excel format compatibility, making it easy to move everyday workbook editing to WPS. It does not restore Excel's missing XML Source command; use an XML-capable tool for schema mapping and export.

Open and edit Excel-compatible XLSX workbooksReview and organize spreadsheet data before XML mappingUse a familiar interface for an easier transition from Microsoft OfficeWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I find XML Source on the Developer tab in Excel for Mac?

Excel for Microsoft 365 on Mac has limited XML mapping support, so enabling Developer may not add XML Source. Open the workbook in a Windows desktop version of Excel that supports XML mapping.

How do I add an XML schema to an Excel workbook?

In supported Excel for Windows, select Developer > Source, then click XML Maps > Add in the XML Source pane. Select your .xsd file and open it.

Can I export worksheet data as XML without mapping it first?

For Excel's schema-based XML export, add an XML map and map the relevant schema elements to worksheet cells or columns before selecting Developer > Export.

What should I check if Excel cannot export the XML map?

Review the error message, confirm that the map is exportable, and check that the mapped cells and data conform to the schema. Then try Developer > Export again.