 
 import Foundation
 import AEXML
-
-public enum OPFParserError: Error {
-
-    /// The natvigation link couldn't not be found in the publication.
-    case missingNavLink
-
-    /// The natvigation link have no/empty Href property.
-    case missingNavLinkHref
-
-}
 
 extension OPFParser: Loggable {}
 

    {
        /// The 'to be built' Publication.
        let publication = Publication()
        /// Relative path to the package.opf file.
        let rootFilePath = container.rootFile.rootFilePath

        // TODO: Add self to links.
        // But we don't know the self URL here

            guard let id = item.attributes["id"] else {
                // Manifest item MUST have an id, ignore it
                log(level: .error, "Manifest item has no \"id\" attribute.")
                continue
            }
            // If it's the cover's item id, set the rel to cover and add the
            // link to `links`
