Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to convert an XML dump of whole Deus Ex Wikia to my Kindle. How can I do that?

Here's the compressed XML file if anyone wants to try their solutions before posting an answer:

share|improve this question

closed as too broad by Nifle, bwDraco, fixer1234, mdpc, Mokubai Feb 15 '15 at 10:58

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

If not on Windows, you could maybe try using Mobipocket in Wine. About your xml file : It's in a very specific format, so I doubt that any ready-made tool will do the work. You might have to write a converter to some known format that is accepted by calibre (which is simply the world's most extensive converter). – harrymc Dec 27 '12 at 15:52
I think the same, but before I jump to programming, I preferred to ask. Perhaps somebody already solved this problem before. – d33tah Dec 27 '12 at 16:44

It looks like you can do this with Mobipocket.

Building from XML

share|improve this answer
Haven't tried yet. Would need some Windows box to run it. – d33tah Dec 27 '12 at 16:05
Help in testing if it works is appreciated ;) – d33tah Dec 27 '12 at 16:05
Well, I finally read the documentation and it appears that to build the book I'd also need some XSL code. Bearing in mind that the XML contains Wikimedia markup, I don't think it'd be the easiest approach. – d33tah Dec 27 '12 at 21:55

I don't know your Wiki system, but if it can export to PDF instead of XML, then calibre is one tool that can convert pdf to almost any ebook format.

share|improve this answer
The solution sucks. You usually don't want to mess with with pdf unless it really is the only possible solution. – d33tah Jan 1 '13 at 3:08
calibre handles pdf like any other format and will not take hours to do the job. So what's the problem with pdf? – harrymc Jan 1 '13 at 8:11
Never knew before? Read up on, section "Convert PDF documents". – d33tah Jan 1 '13 at 9:48
PDF files can be horribly complex, but simple ones are no problem. If you post the PDF export of your wiki, I'll have a go at it with calibre. – harrymc Jan 1 '13 at 11:13
up vote 0 down vote accepted

I figured out a way to do it without too much effort. I've set up my own Mediawiki installation and imported the XML (I needed to increase the limits in PHP configuration - the ones concering the maximum execution time and uploaded file size). It took quite a lot of time on my netbook. On the result page, I could copy the list of the pages, then use egrep -v to filter out non-content pages, such as user profiles, discussions, templates etc.

Then I installed EPubExport. I visited Special:EpubPrintpage and copied the filtered-out list of pages there. Generating the ebook took ages and then converting the EPUB to .mobi was another two hours. The output file is suspiciously long (I doubt that users wrote as much content as Mitchell did in "Cloud Atlas" book), but judging from the preview, it looks legit. It lacks images because they weren't in the XML, though. I'll read it once I'll have some more spare time and let you know how it worked in the long run. If you want to read the ebook by yourself, it can be found here. You'll need to jump to the "Deus Ex" article, because I forgot to cut the index page from the output file.

share|improve this answer
Too bad I can't award the bounty to myself. – d33tah Dec 28 '12 at 20:47

Not the answer you're looking for? Browse other questions tagged .