Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Problem when opening a xml file

3 Weeks Ago   #1
Nosmas

Microsoft Windows 10 Pro 64-bit Multiprocessor
 
 
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.


My System SpecsSystem Spec
.
3 Weeks Ago   #2
mrjimphelps

Dual Boot Xubuntu Linux 64-bit / Windows 7 Professional 64-bit
 
 

Open the file in Wordpad, and edit it as needed.

When you save the file, make sure you save it as an Office Open XML Document.

Now go into File Manager and find the document. Unhide the extension. It will have the following extension: ".xml.doc". Remove the ".doc" part from the extension, so that it has only ".xml" as an extension.
My System SpecsSystem Spec
3 Weeks Ago   #3
Mellon Head

Win 7 Pro x64/Win 10 Pro x64 dual boot
 
 

A better solution would be to open it in Notepad++. It should open properly, unless it is corrupted, and you can save it in the same format that it loads in, which is probably native XML.

I use Notepad++ exclusively for editing XML and other languages, such as HTML, etc. It's extremely flexible, and free.

Did I mention free?

You can get it here:

Notepad++ Home
My System SpecsSystem Spec
.

3 Weeks Ago   #4
Nosmas

Microsoft Windows 10 Pro 64-bit Multiprocessor
 
 

mrjomphelps Thanks for that idea but unfortunately it hasn't worked for me. Having saved the file as you suggested I then tried to open it. In Internet Explorer and MS Edge I get a completely blank page. In Notepad, Wordpad or Office XML Handler (which uses Notepad) I just get unintelligible "mumbo jumbo". In XML Notepad it states "Data at the root level is invalid Line 1 Position 1 and asks if I wish to open it using Notepad. Answering yes just results in "mumbo jumbo" as before.

The file only opens correctly in Word 2016, (i.e. showing all the elements etc.) but if I try to open any of the other XML files using Word, I get a message that "The file contains custom XML elements that are no longer supported in Word. Saving the fie will remove these elements permanently", and only the data for each element is shown for these files and there is no sign of the various elements themselves.

Don't know if any of the above gives some indication of what is wrong, but it's all very frustrating . Can't help feeling that it is something very simple!
My System SpecsSystem Spec
3 Weeks Ago   #5
mrjimphelps

Dual Boot Xubuntu Linux 64-bit / Windows 7 Professional 64-bit
 
 

There must be a new XML format and an old XML format. It sounds like most of your files are in the old format. However, the one file is in the new format, and it therefore opens correctly only in Word 2016. Either that, or maybe the file was saved in Word 2016, and now you have to continue with Word 2016 for that file.
My System SpecsSystem Spec
Reply

 Problem when opening a xml file




Thread Tools




Similar help and support threads
Thread Forum
Problem opening a RAR File
Now call me stupid if you want but I recently downloaded a file from the internet and went to open it when I was told by a little pop-up box that ( Something like this ) windows cannot open the file as it needs to know what programe created it, I was given two choices 1 search the internet or 2...
Microsoft Office
MS Word2010 problem with file opening
Hello, i just was writting my study work with word 2010. Then i saved my document and closed it. Then later i launched my document i got this message, and cant see my word. I want help to recover my document, because i don't have any copy of it. I will be very grateful.Everything is working...
Microsoft Office
Problem with opening file
Hello, everytime I click on to open this file (open dns updater) a quick flash of the screen happens but nothing else , it can't open . Any ideas Thanks
General Discussion
PROBLEM OF all .EXE FILE OPENING
Friends, I have downloaded one skype software and after that i got some problem of .exe file opening . Whenever i start system,mamny program opening as INTERNET EXPLORER window with view downloader dialogue box as some program file .exe file to open or to save . even after closing all those...
General Discussion
MSI file opening problem
Hello! I would like to install a program, but Windows seven doesn't know how to open an MSI file... It asks me "open with what"... Do you have an idea? Regards
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:09.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App