Several months ago, I built an ePub parser from the ground up. During that time, I gained a much greater understanding about XML parsing and the ePub specifications. Here I would like to share what I have learned with you.

Getting Started

Before starting, let’s figure out what an ePub file is?

An ePub file is an e-book file format, which is a compressed folder. The file formats typically contained in an ePub file are XML (including OPF & NCX), HTML, CSS, etc. The XML files contain the data structure of the ePub format. The other file types are mainly used for…

Stone Zhang

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store