EpubCheck is a tool to validate EPUB files.
EpubCheck is a tool to validate epub files. It can detect many types of errors in EPUB. OCF container structure, OPF and OPS mark-up, and internal reference consistency are checked. EpubCheck can be run as a standalone command-line tool or used as a Java library.
Links, references: