lib/epubinfo/parser.rb in epubinfo-0.3.4 vs lib/epubinfo/parser.rb in epubinfo-0.3.5
- old
+ new
@@ -33,9 +33,10 @@
raise NotAnEPUBFileError.new(e)
end
end
def metadata_path
+ root_document.remove_namespaces!
root_document.css('container rootfiles rootfile:first-child').attribute('full-path').content
end
def load_metadata_file
Nokogiri::XML(zip_file.read(metadata_path))