|
Welcome, Guest. Please Login or Register. May 17th, 2008, 7:18am
Author |
Topic: XML export (Read 932 times) |
|
pheisholt
Senior Member
   
WWW | Email
Posts: 306
|
I just downloaded and installed v.6.0.2. I'm very pleased to see that OCD finally has an XML export option. I exported my entire music collection, which consists of approx. 1000 CDs/17000 tracks. The xml file was created within seconds!! I have a couple of comments though: - wouldn't it be an idea to include track number as an attribute to the track element. Example: <track time="2:48" number="02"> - is there any reason to use a proprietory extension (oxl)?
|
|
IP Logged |
- paul -
|
|
|
Firetongue
Administrator
    
Email
Posts: 1107
|
 |
Re: XML export
Reply #1 on: Oct 13th, 2006, 5:40pm |
Quote | Modify
|
on Oct 13th, 2006, 1:51pm, pheisholt wrote:I just downloaded and installed v.6.0.2. I'm very pleased to see that OCD finally has an XML export option. I exported my entire music collection, which consists of approx. 1000 CDs/17000 tracks. The xml file was created within seconds!! | Out of curiosity, how big was the resulting oxl file? I am trying to figure out what's the average size per CD album. Quote:- wouldn't it be an idea to include track number as an attribute to the track element. Example: <track time="2:48" number="02"> | No problem, it's a trivial change. Quote:| - is there any reason to use a proprietory extension (oxl)? | No particular reason. It just makes things simpler for end users.
|
|
IP Logged |
Upload your music catalog to Racks and Tags and get free unlimited collection storage - offer ending SOON!
|
|
|
pheisholt
Senior Member
   
WWW | Email
Posts: 306
|
 |
Re: XML export
Reply #2 on: Oct 14th, 2006, 1:14am |
Quote | Modify
|
Hi Andrei The file was 3160 KB, which isn't bad at all. I have 968 albums or 1038 discs in my collection. So that would amount to 3,26KB per album or 3,04 KB per disc. Approx. 150 of the 17005 tracks include lyrics. If I remove the lyrics, the file size drops to 2980 KB. IMAGES? I now see that the xml file lacks a reference to the images. How about adding: <coverimages> <artwork number='01' href='file://./myCD_covers/0b0a0d12.jpg' /> <artwork number='02' href='file://./myCD_covers/00e231a4.jpg' /> </coverimages> .... <artistimages> <artwork number='01' href='file://./myCD_covers/000f6711.jpg' /> <artwork number='02' href='file://./myCD_covers/b9e2d964.jpg' /> </artistimages> Or something to that affect. To make this work, the image folder (in this case myCD_covers) would of course have to be copied to the same folder as the xml file. Including image references could be made optional. IMPORT? By the way... - do you have any plans of including a DTD or XSD (maybe as an optional feature) - or simply make a DTD/XSD for the current oxl format available? - do you plan to include xml import in a later release? Just asking.... Keep up the good work!
|
|
IP Logged |
- paul -
|
|
|
Firetongue
Administrator
    
Email
Posts: 1107
|
 |
Re: XML export
Reply #3 on: Oct 14th, 2006, 9:15pm |
Quote | Modify
|
on Oct 14th, 2006, 1:14am, pheisholt wrote: That's possible, but I tried at all cost to reduce redundancy (and therefore file size). Currently you can get the name of the cover file by adding folder name and jpg extention to the volume ID: <Volume ID="d49b4506"> translates into myCD_covers/d49b4506.jpg. Quote: But artist image you can't get that way, so I'll add it. Quote:IMPORT? By the way... - do you have any plans of including a DTD or XSD (maybe as an optional feature) - or simply make a DTD/XSD for the current oxl format available? - do you plan to include xml import in a later release? | Not at this time. Maybe later.
|
|
IP Logged |
Upload your music catalog to Racks and Tags and get free unlimited collection storage - offer ending SOON!
|
|
|
|