School › Getting to the stores › Lesson 3 of 6
Look inside the file
An EPUB is a sealed box, and most writers ship it without ever looking inside. You don't have to. The Package Inspector opens the box and shows its actual contents — the package exactly as a store will receive it.
Open Export and choose Inspect Package. The Archive Package Inspector shows the exact files the EPUB builder writes — same generator, same bytes.
Read the file tree the way a store's machine does. The tiny
mimetypeentry leads the archive.META-INF/container.xmlis the signpost pointing at the package file. UnderOEBPSsit the package document, the navigation files, the stylesheet, aTextfolder with one XHTML file per section, and anImagesfolder — each file with its size.Select any file to read it, highlighted. The package document declares every file; the navigation document carries the contents a reader shows; a chapter is strict XHTML, which is why the validator insists on well-formed markup.
When a validator line puzzles you, the answer is usually visible here: compare what a chapter references with what the package actually holds, and the missing picture or misnamed file shows itself.
What is validated is not an abstraction — it is this file tree, these bytes. Knowing your way around the box is what makes the next two lessons quick.