How to disable IE redirect to Edge when opening a local XML file?

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 745
    Windows 10/11
       #11

    DMcKenna said:
    Thanks for the link to LaunchIE. I just finished trying it. Works great, the only thing i noticed was it doesn't open multiple files as tabs in an existing instance and it seems to have some weird issue with remembering the window size/position.
    Yes, those are expected limitations of using a launcher.

    If you leave the window open, click to add a new tab, and then drag your XML file to the window, that's the only way I can see to maintain the window size and use multiple tabs.
      My Computer


  2. Posts : 745
    Windows 10/11
       #12

    Another option is to convert the XML/XSL pair into an HTML file. Then you will be able to open the file in any browser you choose. I successfully converted your sample using the script from here:

    Transform XML+XSLT to plain html so that it loads without blocking (see https://textslashplain.com/2019/10/0...-to-file-urls/ ) . GitHub

    That required editing the script to put in the source file names, but it would be easy to extend the script to support drag and drop for single or multiple files. Let me know if you're interested in a solution like that.

    Here's the sample in Chrome:
    How to disable IE redirect to Edge when opening a local XML file?-1.png
      My Computer


  3. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #13

    DMcKenna said:
    I've attached a sample of the XML files I'm dealing with
    This is what the first screenful of your file looks like in Firefox - it all looks correct to me. And do notice that Firefox allows a Print button to be put on the Toolbar [right-click on any existing Toolbar icon & select Customise Toolbar].
    How to disable IE redirect to Edge when opening a local XML file?-dmvkenna-ff.png


    All the best,
    Denis
      My Computer


  4. Posts : 781
    Windows 10 Pro
       #14

    DMcKenna said:
    Thanks for the link to LaunchIE. I just finished trying it. Works great, the only thing i noticed was it doesn't open multiple files as tabs in an existing instance and it seems to have some weird issue with remembering the window size/position.

    I'll keep using both LaunchIE and MyIE9 and see which works out better.

    I've attached a sample of the XML files I'm dealing with. Have fun, let me know if you find anything out.




    Unlikely. The software is proprietary Japanese machine control programming. The XML files are the reports that are generated from the program. *shrug* Out of my hands.
    And it seems its not been updated since 2009, pretty much abandonware spec.
      My Computer


  5. Posts : 6
    Win 10
    Thread Starter
       #15

    LesFerch said:
    Another option is to convert the XML/XSL pair into an HTML file. Then you will be able to open the file in any browser you choose. I successfully converted your sample using the script from here:

    Transform XML+XSLT to plain html so that it loads without blocking (see https://textslashplain.com/2019/10/0...-to-file-urls/ ) . GitHub

    That required editing the script to put in the source file names, but it would be easy to extend the script to support drag and drop for single or multiple files. Let me know if you're interested in a solution like that.

    Thanks, that was an interesting read. Though I will admit my level of tech savvy is insuficient to understand 60% of that article.
    The type of "programming" I do (G-code generation for CNC machines) doesn't translate into understanding actual programming language discussions.

    The script solution you offer could end my reliance on IE entirely, so I would be interested in seeing how it works. If it's not to much trouble for you!

    - - - Updated - - -

    Hearsepilot said:
    And it seems its not been updated since 2009, pretty much abandonware spec.
    Indeed, it's an old program. Unfortunately, it's not going to be updated as it's tied into our system too deeply. It would be a huge expense in time and labor to change it.


    Try3 said:
    This is what the first screenful of your file looks like in Firefox - it all looks correct to me.
    yup, that's the raw XML text that's displayed in anything except IE.
    However, it should look like the image in LesFerch's post above yours.
      My Computer


  6. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #16

    Oh, there is obviously something that I don't know.
    I looked in IE as well and it all seemed the same to me.
    How to disable IE redirect to Edge when opening a local XML file?-ie-ff.png


    All the best,
    Denis
      My Computer


  7. Posts : 6
    Win 10
    Thread Starter
       #17

    That is strange. Did you grab the XSL file as well?
    It should be in the same location as the XML.

    Maybe there's a setting in IE that I'm not aware of that's parsing the files in a different way for you?
      My Computer


  8. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #18

    Yes but my IE shows only one of the set of three files at any time [whichever one loads last] It does not understand that they are in some way linked.
    But I should bow out to avoid being a distraction. I hope Les can help you.
    [The only time I work with xml files normally is when I edit Event Viewer, Custom view definitions or Task scheduler task definitions and they are all very simple, stand-alone structures.]


    Best of luck,
    Denis
    Last edited by Try3; 29 Feb 2024 at 11:53.
      My Computer


  9. Posts : 745
    Windows 10/11
       #19

    DMcKenna said:
    The script solution you offer could end my reliance on IE entirely, so I would be interested in seeing how it works. If it's not to much trouble for you!
    I rewrote the original JS script in C# and compiled it to an Exe that you can run from the command line or drag and drop one or more XML files onto it. It will create a new file by the same name, but with an HTML extension. I've provided it as an attachment here for now. Test it. If it works well, I'll create repository for it on GitHub.
    How to disable IE redirect to Edge when opening a local XML file? Attached Files
      My Computer


  10. Posts : 6
    Win 10
    Thread Starter
       #20

    LesFerch said:
    I rewrote the original JS script in C# and compiled it to an Exe that you can run from the command line or drag and drop one or more XML files onto it. It will create a new file by the same name, but with an HTML extension. I've provided it as an attachment here for now. Test it. If it works well, I'll create repository for it on GitHub.
    Thanks, I tested the file. Works great.

    As long as the EXE and the XSL reside in the same folder, I can drag batches of XML files to the program for conversion. The resulting HTML files are generated in the source location.

    This is super useful and will save me a lot of time. One of the reasons I even print these files is to provide production with setup sheets for the machines because they have no access to the reports from my programs. (Don't even ask. Our file system is a spaghetti nightmare)

    With this I can simply batch convert a whole day's worth of work and email the HTML files to the production head.

    Thanks for all your help, you've just saved me hours of time

    I'm gonna mark the thread solved.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:21.
Find Us




Windows 10 Forums