Export Excel Data to XML Using an XML Schema
Question details
The user wants to map an XML schema to Excel data and export it as an XML file.

- 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.
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.
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.
Open the workbook in desktop Excel for Windows and make the .xsd schema file available on the same computer.
Go to File > Options > Customize Ribbon, select Developer under Main Tabs, and click OK.
Select Developer > Source. In the XML Source pane, click XML Maps > Add, select the .xsd file, and click Open.
In the XML Source pane, drag schema elements to the corresponding worksheet cells or columns containing the data you want to export.
Select Developer > Export, choose the XML map if prompted, enter a file name, and save the XML file.

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.

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.




