View Full Version : "Content is not allowed in prolog." - Enhanced Epub Error Help?


AmpedUpDigital
05-02-2011, 10:31 PM
Hello all! I will fully admit to being a noob at the epub game, so please be gentle.

I have an enhanced epub with video that I have created for the iPad. When I sync through iTunes it works perfectly.

The problem comes when posting through iTunesPublisher. Has anyone seen the error: "Content is not allowed in prolog." If so, what does that mean and any thoughts on how to fix it?

BTW, why does Apple make this such a difficult process? If it runs on my iPad during testing, shouldn't it run on every other iPad?

Anyway, thanks for any insights.
Kelly R. Kerr

Toxaris
05-03-2011, 10:29 AM
The main problems are, that video is not really part of the epub specs and the iBooks app on the iPad is a crap program. The iBooks program doesn't follow a lot of specs and you have to work around it.

Then again, after working around it, it will probably only work on the iBooks app.

Like I said, video is not part of the specs. If you get it to work, there are no garantues. I would advise search around on this forum. Various posts about video on the iPad in a iPub (since it won't be an ePub) are made and I believe also methods to make it work.

Jim Lester
05-03-2011, 12:38 PM
"Content is not allowed in prolog" is a general XML error and it usually means that you have whitespace before the beginning of the content so instead of


<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
.... yadda yadda yadda ....



You may have



(new lines or tabs )

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>


If the error gave a particular file - check that file.


EDIT: ... alternatively ... it's not about your ePub at all, but is a problem sending the request to the Apple servers (firewall, et al inserting content into the body).