Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : XML error


KZouwin
02-13-2005, 07:55 AM
Hi all,

Due to a power loss, my computer restarted correctly.
After that, I cannot open my .sdl file. I always get an XML error :

Error opening SDL: Caractère XML non valide : �.
java.io.IOException: Error opening SDL: Caractère XML non valide : �.
at ck.a(Unknown Source)
at bJ.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Unk nown Source)
at ar.a(Unknown Source)
at cF.a(Unknown Source)
at cq.widgetSelected(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent( Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unkno wn Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Un known Source)
at ky.a(Unknown Source)
at com.distantchord.sunrise.apps.Desktop.e(Unknown Source)
at com.distantchord.sunrise.apps.Desktop.main(Unknown Source)

I tried to upgrade from 0.41 to 0.41d version and nothing changed.

I succeeded in creating a new document list and a new document in it.

Can someone help me before I recreate my document list and all my documents ?

Thanks

Laurens
02-13-2005, 08:35 AM
You might want to open your SDL in Notepad (or any other text editor) and remove the � entity to see if that helps. You could also check if there is a ".bak" file in the same directory.

KZouwin
02-13-2005, 10:46 AM
Thanks for your quick reply.

I tried to look for � entity in the sdl file : it is not present, even the 3 first letters...
And there is no .bak file in the same directory.

Any more idea ?

If no, I'll rebuild my .sdl and make a copy regularly.

Thanks

Laurens
02-13-2005, 11:04 AM
The error you're getting is due to a 0 byte somewhere in the file. This won't show up in a text editor. (You need a hex editor to edit this.)

If all else fails, you could e-mail me your SDL file, so I can try to salvage some of the data.

KZouwin
02-13-2005, 11:35 AM
Very kind to you.

I send you my sdl file to your mail.

Don't spend too much time in it, I found an old sdl file in which i only miss 5 documents so it will not take me a long time to rebuild.

KZouwin
02-13-2005, 11:43 AM
Very kind to you.

I send you my sdl file to your mail.

Don't spend too much time in it, I found an old sdl file in which i only miss 5 documents so it will not take me a long time to rebuild.

Here it is.

Laurens
02-13-2005, 11:49 AM
Fixed version is attached. The last byte of the file was a 0.

KZouwin
02-13-2005, 12:26 PM
Thanks a lot, it works fine.

Now, I'll have a backup copy and a new one each time I change or add a document.

Thanks again.