Open XML files on file shares with Edge "Chromium"

Memory 46 Reputation points
2020-12-22T14:14:00.96+00:00

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 | Microsoft Edge development
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2020-12-25T07:29:41.977+00:00

    @Memory ,
    If you try to open your XML file in the notepad then you can see that there is a reference to the XSL file.

    For some security concerns, it looks like Chromium-based browsers will not allow any file that gets opened using the file:// protocol to access another file with the file:// protocol from your local disk.

    There are some workarounds available that may help you to open the XML file with reference to the XSL file.

    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.

    1 person found this answer helpful.

  2. Yitzhak Khabinsky 26,586 Reputation points
    2020-12-22T18:27:24.157+00:00

    Please try along the following.

    It is possible to browse a local file system. A folder, and select an individual file.

    file:///E:/temp/
    
    file:///E:/temp/yourXMLFile.xml
    

    My Edge version 87.0.664.66 (Official build) (64-bit)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.