question

Memory-6441 avatar image
0 Votes"
Memory-6441 asked Deepak-MSFT commented

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.

ms-edge
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YitzhakKhabinsky-0887 avatar image
0 Votes"
YitzhakKhabinsky-0887 answered Memory-6441 commented

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)

· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Are you saying we need to compose some kind of script or something to open an xml file with Edge? We currently have versoin 87 installed and when trying to open an XML file just by double clicking on it we get a prompt asking which application to use and when we choose Edge it just displays a blank page regardless of the xml location, local to the machine or on a shared drive.

Now if we say to open the XML file with IE then it opens just fine.

0 Votes 0 ·

@Memory-6441,
I tried to open the XML file with the Edge Chromium browser and it works.

50683-188.gif

Can you please inform us what is the extension of your XML file? (like XML, XSL, XMLS).
Please check the console of the browser to see whether there are any warnings.
I suggest you make a test with any other XML file and see whether it get open successfully or not.
If you see the same issue with the different XML files then I suggest you try to reset the Edge browser by pasting edge://settings/reset in the address bar and press the Enter key.

Click on the Restore settings to their default values option and click the Reset button.

See whether it helps to fix the issue.


0 Votes 0 ·
188.gif (1.1 MiB)

This does not help with opening XML (XML extension only) from file share locations. Local XMLs open and are readable but when the XML is stored on a shared file location where the path to the XML file begins with file://

These do not render anything, just a white page. Additionally all .xml files prompt for which application to use to open them, likely this can be fixed by setting the default file type and which application it opens with but why after installing/upgrading to Edge as the default browser is this the case?

0 Votes 0 ·
Show more comments
Deepak-MSFT avatar image
0 Votes"
Deepak-MSFT answered Deepak-MSFT commented

@Memory-6441,
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.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@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
<site url="subdomain.domain.net">
<compat-mode>Default</compat-mode>
<open-in app="true" allow-redirect="true">IE11</open-in>
</site>

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.
<site url="file">
<site url="file://">
<site url="//">
<site url="file://subdomain.domain.net">
<site url="subdomain.domain.net.*.xml">

See next comment, I hit the character limit

0 Votes 0 ·

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 0 ·

@Memory-6441,

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.

0 Votes 0 ·