File Format & Compatibility

Fix SharePoint InfoPath XML Link Opens in Excel Instead of Browser

Elise WilliamsElise Williams Nov 2, 2026 868 views

Question details

A specific user is experiencing an issue where clicking an InfoPath form link ending in .xml from SharePoint automatically opens the file in Excel, whereas it opens correctly in a web browser for other users.

How to Fix SharePoint InfoPath XML Link Opening in Excel
Product
SharePoint, Microsoft Excel
Device & OS
not provided
Scenario
Clicking a shared SharePoint InfoPath link that ends with a .xml file extension.
Observed behavior
The .xml file is downloaded and launched in Microsoft Excel instead of rendering the form directly inside the user's web browser.
Before you start

Verify if this issue occurs in multiple web browsers (like Chrome, Edge, and Firefox) to determine if the problem is specific to one browser's settings or a system-wide file association issue.

Solution 1Recommended

Correct Windows Default File Associations for XML

Change the default application settings in Windows so that XML files are handled by the correct application or browser instead of Excel.

Windows relies on default app settings to determine how to open specific file extensions. If Excel was accidentally set as the default app for .xml files, clicking InfoPath links will trigger Excel.

Resetting this to your web browser or the Microsoft Office XML Handler will restore the correct behavior.

1
Open Windows Settings

Press the Windows key + I on your keyboard to open Settings, then click on 'Apps'.

2
Navigate to Default Apps

Select 'Default apps' from the left sidebar, scroll down, and click on 'Choose default apps by file type'.

3
Locate .xml Extension

Scroll through the alphabetical list until you find the '.xml' extension.

4
Change the Default App

Click on Microsoft Excel (or the currently listed app) and change it to your preferred web browser (e.g., Microsoft Edge) or select 'Microsoft Office XML Handler' if available.

Correct Windows Default File Associations for XML
Restart Your Browser: After changing the default app, completely close and reopen your browser for the changes to take effect.
Free Microsoft Office alternative

Handle Office Files Seamlessly with WPS Office

If you frequently struggle with Microsoft Office file association errors, consider switching to WPS Office. It is a free, lightweight suite that offers robust handling of spreadsheets, documents, and presentations without the complex configuration issues of Microsoft 365.

  1. 1. Download and Install: Visit the official WPS website, download the free installer, and follow the on-screen instructions.
  2. 2. Open the Application: Launch WPS Office to access the all-in-one workspace for documents, spreadsheets, and presentations.
  3. 3. Set Default Programs: Go to Global Settings within WPS to set it as your default application for opening spreadsheets and documents seamlessly.
Fully compatible with Microsoft Excel (.xlsx, .xls) and XML formats.Lightweight application that prevents slow loading and frustrating file routing errors.Clean, all-in-one tabbed interface for managing various document types easily.Free to use without requiring an expensive Microsoft 365 subscription.
QA img-9

Frequently Asked Questions

Why do XML files automatically open in Excel by default?

When Microsoft Office is installed, Windows often associates the generic .xml file extension with Excel. If a browser does not natively intercept the link, the operating system defaults to downloading the file and opening it in the associated desktop app.

How can a SharePoint Administrator force forms to open in the browser?

Site administrators can enforce this by navigating to the SharePoint Library Settings, clicking on 'Advanced Settings', and changing the 'Opening Documents in the Browser' option to 'Open in the browser'.

What is the Microsoft Office XML Handler?

The Microsoft Office XML Handler is a background utility installed with Office. Its job is to read the schema of an XML file and automatically route it to the correct Office application (such as InfoPath, Word, or Excel) based on the file's internal structure.

Is Microsoft InfoPath still supported?

Microsoft has deprecated InfoPath, and InfoPath Forms Services are being phased out in modern SharePoint environments. Users are encouraged to migrate their legacy InfoPath XML forms to Microsoft Power Apps for continued support.