Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2020, 12:16 PM   #1
wellsterhubble
Junior Member
wellsterhubble began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2020
Device: Kindle Oasis
How can I convert a bunch of .xml files to an eBook format with nice formatting?

I have a folder filled with 4chan threads, each thread can contain any number of comments. I want to create readable files for my Kindle, with multiple threads per book, with each thread clearly defined for the person reading it, each comment showing details that are present in the .xml file, such as 'date of post', the post number, the comment text, etc.

I want to be able to combine multiple threads from a single folder, so I can decide what threads I’d like to combine into a single ebook file.

My understanding is that the best way to do this would probably be to somehow represent the .xml data in an .html file which I can easily convert to .epub or .mobi format. My problem is I don’t know how to convert the .xml data into something readable and tidy in an .html file…and I don’t know how I’d do this en masse for many .xml files at once, combining some of them.

I’ve added a picture here

Click image for larger version

Name:	lOtdf.png
Views:	129
Size:	68.1 KB
ID:	179571

Moderator Notice
Please read Guidelines #9 re image sizes. Use the paper clip icon in the Advanced mode top tool bar to add, use it again to select


Two .xml files on the left, and the outcome that I want on the right.

showing basically the outcome I want, the formatting doesn’t have to be exact, I just want it tidy and readable, in a format that I can change the font size, etc on my Kindle as you would with any other ebook file.

Last edited by BetterRed; 05-28-2020 at 05:54 PM.
wellsterhubble is offline   Reply With Quote
Old 05-28-2020, 12:31 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It depends on what is in the XML files, XML is just a container format. Typically you would use xslt styesheets and something like xslt-transform to do this.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling raw XML files into an ebook? cliffsloane General Discussions 2 11-25-2013 04:01 AM
After merging all the .xml files, how do you divide it back into .xml files? automa Sigil 10 08-13-2013 07:43 AM
Ebook in PRC format will not convert to any other format Katelyn Calibre 0 10-01-2010 07:02 PM
Which format should I convert .lit files to? Joe Schmoo Astak EZReader 16 01-30-2010 12:23 PM
Nationally Adopted XML eBook Format ahi Workshop 22 06-10-2009 11:20 AM


All times are GMT -4. The time now is 09:32 AM.


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