View Single Post
Old 06-09-2011, 08:15 PM   #1
skdutta
jojobar
skdutta ought to be getting tired of karma fortunes by now.skdutta ought to be getting tired of karma fortunes by now.skdutta ought to be getting tired of karma fortunes by now.skdutta ought to be getting tired of karma fortunes by now.skdutta ought to be getting tired of karma fortunes by now.skdutta ought to be getting tired of karma fortunes by now.skdutta ought to be getting tired of karma fortunes by now.skdutta ought to be getting tired of karma fortunes by now.skdutta ought to be getting tired of karma fortunes by now.skdutta ought to be getting tired of karma fortunes by now.skdutta ought to be getting tired of karma fortunes by now.
 
Posts: 20
Karma: 480294
Join Date: Jun 2010
Device: prs-900
Import XML Feature designed in Calibre?

I have been using Alfa eBook Manager to manage my books so far. Now I want some of those books to be imported to Calibre. Alfa gives an easy way to export the meta data (and the book location) using a structured xml file.

So, I was wondering if there is an xml import format so that I can do the required xslt translation to import. OR if it is possible to generate calibre command line from this using XSLT. OR if there is even something close. Note that I want to do it as a one step process (don't want to copy files separately)

See below for the exported format, note that it outputs the file name that calibre can potentially import.

DISCLAIMER: I am new to Calibre!

Code:
<?xml version="1.0" encoding="utf-8"?>
<Book Book_Id="168">
  <Title>1,001 Best Slow-Cooker Recipes</Title>
  <Subtitle>The Only Slow-Cooker Cookbook You'll Ever Need</Subtitle>
  <Authors>
    <Author>Spitler, Sue</Author>
    <Author>Yoakam, R</Author>
  </Authors>
  <Genre>Food &amp; Drink: General</Genre>
  <Publisher>Agate Surrey</Publisher>
  <Series/>
  <Isbn_10>1572840986</Isbn_10>
  <Isbn_13>9781572840980</Isbn_13>
  <Date>Wednesday, October 01, 2008 12:00:00 AM</Date>
  <Pages>800</Pages>
  <Language>English</Language>
  <Paperback>Paperback</Paperback>
  <Edition>0</Edition>
  <Dimension>120x890x590</Dimension>
  <Weight>180</Weight>
  <Price>$19.95</Price>
  <Description>recipes - all thoroughly tested.</Description>
  <Toc/>
  <Front_cover>M:\Books\eBook\Sue Splitler\1572840986.jpg</Front_cover>
  <Back_cover/>
  <Location>M:\Books\eBook\Sue Splitler\1,001 Best Slow-Cooker Recipes.pdf</Location>
  <Size_nature>5784125</Size_nature>
  <Rating>4</Rating>
  <Date_Add>Monday, July 26, 2010 8:33:38 PM</Date_Add>
</Book>

Last edited by skdutta; 06-09-2011 at 08:17 PM. Reason: types
skdutta is offline   Reply With Quote