Originally Posted by Nigol
Or a more proper way would be to check for the mimetype application/x-dtbncx+xml in the opf file. I will change it in the next version if there are some problem with some files. But I would like to see your opf & ncx file, just to be sure.
The really proper way would be:
- For the OPF file, look into META-INF/container.xml (this filename does not change), and you'll find something like:
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml" />
there you have the OPF file, with full path.
- For the NCX file, look into the OPF file, and search the spine:
here, "ncx" is the id of the NCX file. Now you have to search the manifest for the "ncx" id:
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />
and there you have the NCX file.