Problem when opening xml file


  1. Posts : 10
    Windows 10 Pro 64-bit Multiprocessor
       #1

    Problem when opening xml file


    I have a small program, which uses a number of xml files. The program is not working properly and I suspect that is due to a problem with one of the xml files. When I click on any except one of those files it opens in a MS Edge (the default Windows 10 browser) window and all the elements, sub-elements, data and closing tags can be seen and read. Clicking on the problem file opens it in Edge BUT only shows the Root element, followed by the first element (called Appointment) then a large (vertical) space then another Appointment first element. There are (correctly) 25 of these Appointment elements and NO closing tags for them OR the Root element. However, clicking on ANY of the first Appointment elements immediately causes all the missing lines to be displayed – i.e. various other elements and their data and closing tags and also the closing tag for the Root element.

    The file thus displayed is a perfectly normal xml file and it seems that there is something (possibly damage/corruption) that is prohibiting it from opening properly in the first place. Opening the xml file in Excel 2016 then saving as another name has no effect on its behaviour. Any thoughts please as to the cause and way to correct.
      My Computer


  2. Posts : 43,026
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    You could try running it through an XML validator (just search for options).
      My Computers


  3. Posts : 14,024
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #3

    I have a small program, which uses a number of xml files
    It's always helpful to know exactly what program the problem exists in. I have a couple of programs that can work with .xml files.
      My Computers


  4. Posts : 8,114
    windows 10
       #4

    It's a txt file so you can open with notepad or simliar
      My Computer


  5. Posts : 10
    Windows 10 Pro 64-bit Multiprocessor
    Thread Starter
       #5

    Move top of queue in hope someone else may be able to suggest solution.
      My Computer


  6. Posts : 43,026
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    That's not allowed under forum rules, sorry.
      My Computers


  7. Posts : 10
    Windows 10 Pro 64-bit Multiprocessor
    Thread Starter
       #7

    dalchina - Why is it "not allowed" and where is the forum rule stating this?
      My Computer


  8. Posts : 43,026
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #8
      My Computers


 

  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 05:00.
Find Us




Windows 10 Forums