"Content is not allowed in prolog" after computer crash

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
JustMN
Posts: 2

"Content is not allowed in prolog" after computer crash

Tue Feb 21, 2017 5:18 am

I'm brand new to oXygen and I've already encountered a problem my instructor can't help me with. I was working on creating a schema, saving occasionally as I went along. Last night I decided I'd worked long enough, so I saved my file and then tried to switch to Firefox, which was also open. After a several minutes long hang, my computer crashed. After restarting it, I thought I'd better check on my oXygen file, since it had still been open when the crash occurred. I got a message saying something along the lines of "The program didn't close properly. Do you want to reopen the files you were working on?" I said yes, but it only opened one of the two or three files I had open, and it was not the one I had most recently been working on. When I did open that one, the file was completely blank, and the message "Content is not allowed in prolog" appears at the bottom of the window. I gather this means that there is an incorrect character somewhere at the beginning of the document, but there is no text at all, so I can't look for what is wrong. The file had been validating properly prior to the crash. I did try to Change Version just before my last save. Could that have caused a problem? There was no error message when I tried to save.

The only thing I see when I open the document is "using XML Schema 1.0 for the current file", a 1 to indicate the first line of the file (which again, is completely blank), and the error message at the bottom.

Is this file recoverable? If so, how?
Radu
Posts: 5757

Re: "Content is not allowed in prolog" after computer crash

Tue Feb 21, 2017 10:01 am

Hi,

I got a message saying something along the lines of "The program didn't close properly. Do you want to reopen the files you were working on?" I said yes, but it only opened one of the two or three files I had open, and it was not the one I had most recently been working on.


Oxygen does not properly remember the list of last opened files after a computer crash. So this is a small bug on our side but it's not related to the missing content in the file.

The only thing I see when I open the document is "using XML Schema 1.0 for the current file", a 1 to indicate the first line of the file (which again, is completely blank), and the error message at the bottom.
Is this file recoverable? If so, how?


If the file was saved from Oxygen before the crash, its content should have been there. But probably in this case the operating system had some kind of caching and did not properly update the file system before the crash.
Unfortunately it's out of our hands, we usually store a temporary copy of the file during the save operation in order to restore the file if the save operation failed. But in this case the save operation worked but probably the operating system did not properly update the file system.
There might be utility software products specialized in recovering file contents but I cannot give you advice about what to use.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
JustMN
Posts: 2

Re: "Content is not allowed in prolog" after computer crash

Wed Feb 22, 2017 7:30 am

Thank you for getting back to me, even though it was with news I'd hoped not to hear.

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 1 guest