New
#1
Problem when opening a 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.