Open XML files on file shares with Edge "Chromium"

Hello, we are working on deploying Edge and removing all other browser from our end user base. Issue we have is that Edge cannot seem to open XML files. When an XML file is opened with Edge it's just a blank page. Of course if we open the file with just IE then the text needed to be seen is there. Anyone have any recommendations, can't seem to find much direction when looking around online.

Microsoft Edge A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools. 2,285 questions Sign in to follow 0 comments No comments Report a concern I have the same question I have the same question 0 votes Add comment

2 answers

Sort by: Most helpful Most helpful Newest Oldest Deepak-MSFT 2,191 Reputation points • Microsoft Vendor 2020-12-25T07:29:41.977+00:00
  1. Host your XML and XSL file on a local web server and then try to access it using the Edge browser.
  2. Try to launch the Edge browser with the --allow-file-access-from-files command line argument and then try to access the XML file.
  3. If possible then you can remove the reference for the XSL file from your XML file will help to see the content of the file without any styling.

You can try to check the discussion on this thread may give you some additional information about this issue. The discussion is for the Chrome browser on the same issue. As Edge and Chrome both use the chromium-browser engine, the same applies to both browsers.

If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

3 comments Show comments for this answer Report a concern Memory 421 Reputation points 2020-12-31T15:08:34.63+00:00

@Deepak-MSFT
I did try with the command line you mentioned but that does not seem to help. What I did find does help is the Enterprise Mode Site List and adding in an entry like the below

Default
IE11
Only issue with that is ANY site that ends in subdomain.domain.net is going to open in IE11 and we don't want that. Is there any way to only open specific file:// URLs using the Enterprise Mode Site List? I tried several options but none seem to work, some examples of the first line below.




See next comment, I hit the character limit

0 votes Report a concern Memory 421 Reputation points 2020-12-31T15:08:57.217+00:00

But none of those seem to work. I recognize that this will open the file in Edge first then launch IE11 but that seems to be the only thing we can do if Edge is the default browser at our organization and these XML files don't meet the security requirements for "Chromium". Fact is, we still need to open them

0 votes Report a concern Deepak-MSFT 2,191 Reputation points • Microsoft Vendor 2021-01-04T08:09:23.767+00:00

@Memory , I understand your situation that you are not able to access the XML file with the reference to the XSL file with the file:// protocol due to security reasons.
The workaround you are trying to use with the help of the Enterprise mode site list will not help you to handle the said issue properly and it can cause new issues.
You can try to open the XML file using the IE mode in the Edge browser. See if it works.
I suggest you try other workarounds that I had suggested to you in my previous answer.
If the issue still persists then I suggest you press the ALT + SHIFT + I key in the MS Edge browser and try to provide feedback to Microsoft regarding this issue. Thanks for your understanding.