Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-08-2013, 06:41 PM   #1
JimmyG
Connoisseur
JimmyG began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch
Importing files

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?
JimmyG is offline   Reply With Quote
Old 04-08-2013, 09:47 PM   #2
mrmikel
Book Twiddler
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 1,703
Karma: 1356799
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
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.
mrmikel is offline   Reply With Quote
 
Enthusiast
Old 04-09-2013, 07:04 AM   #3
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,742
Karma: 2117255
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
A HTML file does not have to start with a DOCTYPE. A XHTML file though...
Toxaris is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:13 PM.


MobileRead.com is a privately owned, operated and funded community.