Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal errors, how to solve? #61

Closed
DanielRuf opened this issue Nov 10, 2013 · 4 comments
Closed

Fatal errors, how to solve? #61

DanielRuf opened this issue Nov 10, 2013 · 4 comments

Comments

@DanielRuf
Copy link

I get these fatal errors on my console:

[Fatal Error] :1:2: Markup im Dokument vor dem Root-Element muss ordnungsgemäß formatiert sein.
[Fatal Error] :18:49: Präfix "opf" für Attribut "opf:scheme", das mit Elementtyp "dc:identifier" verknüpft ist, ist nicht gebunden.

How to catch these exceptions and solve them?
Where do they come from?

Seems this comes from XMLPull.
But what API/version do we need from XMLPull?

Are there more dependencies?
What is with org.w3c.dom?

@psiegman
Copy link
Owner

Hi Daniel,

This error means that the opf document is missing the namespace declaration for the opf prefix.
Unzip the epub file, and check the index xml files.
Open the file /META-INF/container.xml and find the file referenced by rootFile.
Then open the file mentioned there.

Paul

@DanielRuf
Copy link
Author

So these files can not be parsed and we can not retrieve the information about author and title?
These are invalid epub files?

@psiegman
Copy link
Owner

Yes, they seem to be invalid.
Can you send me one so I can have a look ?

Paul

@DanielRuf
Copy link
Author

I can do so, if I have it again. It is on another computer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants