|04-08-2013, 06:41 PM||#1|
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch, Voyage
I'm starting a new book, for which I have three html files I've done in other editors. Sigil refused to import them, and advised:
The following files were not loaded due to invalid content or not well formed XML
and for each file it says:
line 1: whitespace expected
The first line of each file is a <!Doctype...
I erased the Doctype line and left the first line blank and it loaded them.
Doesn't every html file start with a Doctype?
|04-08-2013, 09:47 PM||#2|
Color me gone
Join Date: Apr 2008
Location: Central Oregon Coast
There is probably something wrong with the DOCTYPE, a space where it doesn't mean to be or something of that order.
There is a selection in preferences for pretty print or Tidy at open or save which you can turn on to import flawed files, and then turn back off after you have brought them in.
The DOCTYPE is the same for all epubs, as far as I know, so you can copy the first part of the epub from a valid one and paste it over the problem stuff.
|04-09-2013, 07:04 AM||#3|
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Importing multiple files||stosss||Sigil||11||12-16-2012 04:52 PM|
|Importing HTML Files||Shadowlane||Calibre||1||12-19-2009 03:04 PM|
|Importing local files within a plugin||macr0t0r||Plugins||1||11-21-2009 07:41 PM|
|Importing files onto a Kindle||Dahak||Amazon Kindle||7||05-19-2009 12:12 AM|
|Error when importing MobiPocket files.||mbovenka||Calibre||7||08-16-2008 10:07 AM|