|  07-18-2013, 04:05 PM | #1 | 
| Junior Member  Posts: 2 Karma: 10 Join Date: Jul 2013 Location: Boston area Device: none | 
				
				META-INF/container error
			 
			
			Hi all. I'm trying to create an ePub from scratch (well, sort of from scratch) for a work project. I keep getting the same error message when I try to validate it. Here's the error message: No rootfile with media type 'application/oebps-package+xml' Here are the guts of my META-INF/container.xml file: <rootfiles> <rootfile full-path="OEBPS/package.opf" media-type="application/oebps-package+xhtml+xml"/> </rootfiles> </container> My OPF file is named "package.opf". I've compared my META-INF/container.xml file to other ePubs that I know validate and function correctly, and it seems to match. BUT clearly something is amiss! Any ideas would be greatly appreciated. | 
|   |   | 
|  07-18-2013, 06:01 PM | #2 | 
| Grand Sorcerer            Posts: 11,470 Karma: 13095790 Join Date: Aug 2007 Location: Grass Valley, CA Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7 | 
			
			shouldn't it be: <rootfile full-path="OEBPS/package.opf" media-type="application/oebps-package+xml"/> Is the case of the filenames and folder names ok? Dale | 
|   |   | 
|  07-18-2013, 11:49 PM | #3 | 
| Connoisseur            Posts: 51 Karma: 29994 Join Date: Nov 2011 Location: Manila, Philippines Device: iPad 2 & Nexus 7 | 
			
			You might want to check if your "package.opf" is inside the "OEBPS" folder only. If it's inside another folder you need to add that "sub-folder" to the declaration.
		 | 
|   |   | 
|  07-19-2013, 03:58 AM | #4 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			As Dale said, you have: application/oebps-package+xhtml+xml and the error message says it should be: application/oebps-package+xml I would start there. | 
|   |   | 
|  07-22-2013, 02:38 PM | #5 | 
| Junior Member  Posts: 2 Karma: 10 Join Date: Jul 2013 Location: Boston area Device: none | 
			
			Thanks to all who replied! When I delete "+xhtml" from the "application/oebps-package+xml" path and then try to validate the ePub, I get about 30 error messages. I originally included "xhtml" because most of the files in the OEBPS folder are XHTML, not XML. Also, the "package.opf" file is in the OEBPS folder so I don't think that's the problem. | 
|   |   | 
|  07-22-2013, 03:45 PM | #6 | ||
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | Quote: 
 Quote: 
 | ||
|   |   | 
|  07-22-2013, 04:58 PM | #7 | 
| Wizard            Posts: 4,520 Karma: 121692313 Join Date: Oct 2009 Location: Heemskerk, NL Device: PRS-T1, Kobo Touch, Kobo Aura | 
			
			And XHTML is XML of course. Looking weird perhaps, but still XML.
		 | 
|   |   | 
|  07-22-2013, 09:53 PM | #8 | 
| Grand Sorcerer            Posts: 11,470 Karma: 13095790 Join Date: Aug 2007 Location: Grass Valley, CA Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7 | |
|   |   | 
|  07-23-2013, 12:22 AM | #9 | 
| Grand Sorcerer            Posts: 13,693 Karma: 79983758 Join Date: Nov 2007 Location: Toronto Device: Libra H2O, Libra Colour | |
|   |   | 
|  07-23-2013, 01:04 AM | #10 | 
| Grand Sorcerer            Posts: 11,470 Karma: 13095790 Join Date: Aug 2007 Location: Grass Valley, CA Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7 | |
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| error updating meta data | Sharkslayer | Library Management | 1 | 04-01-2013 05:48 AM | 
| META-INF folder not displayed | Dan__ | Sigil | 2 | 02-26-2013 12:33 PM | 
| NEED HELP!!! - META-INF/container.xml is missing | soulmenj | ePub | 2 | 07-12-2011 10:49 PM | 
| Add xml in META-INF | Sylver | Sigil | 5 | 04-26-2011 03:17 AM | 
| error when editing meta data | tom233 | Calibre | 1 | 10-06-2010 03:28 AM |