Hello-3.1.epub - "container.xml" File
How to create the "container.xml" file of an EPUB 3.1 book?
The "container.xml" file of an EPUB 3.1 book is a required file in the book ZIP container. It specifies a package file of any name, for example: package.opf.
Here is the requirement on the "container.xml" file:
1. The "container.xml" file must be named as "container.xml".
2. The "container.xml" file must be an XML file and meet the EPUB Open Container Format (OCF) 3.1 specifications.
3. The "container.xml" file must specify at least 1 package file, any name, for example: package.opf.
4. The "container.xml" file must be placed in a sub-directory called META-INF of the EPUB 3.1 book ZIP container.
You can create the "container.xml" file with any text editor. Here is an example:
<?xml version="1.0" encoding="utf-8"?> <container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0"> <rootfiles> <rootfile full-path="package.opf" media-type="application/oebps-package+xml"/> </rootfiles> </container>
Download Hello-3.1.epub, and unzip it. You see an example of "container.xml" in the META-INF directory.
2022-05-31, 1307👍, 0💬
Can You Specify the "new line" Character in Single-Quoted Strings? You can not specify the "new line...
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JS...
Where Is the Submitted Form Data Stored in PHP? When a user submit a form on your Web server, user e...