# XML and HTML export configuration file

**URL:** https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712
**Category:** Export
**Created:** [February 18, 2005, 5:24pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712 "2005-02-18T17:24:28Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [February 18, 2005, 5:24pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/1 "2005-02-18T17:24:28Z")

</div>

First of all let me say MP3Tag is great! Many thanks to florian.

This is my first attempt with export configuration files, but I hope this will be useful to someone.

I usually have an artist directory and each album in its own subdir with a cover.jpg thumbnail and a playlist.m3u file in it. So I would like to have an export configuration file with which I can create a complete report of my collection.  
After some tries with the export configuration files I've found on the site, I've chosen to modify dano's cd2html to add a loop over the full collection and the jpg image for each album.

This is the result:

[html\_squonk.zip](https://community.mp3tag.de/uploads/default/original/1X/f5ef5adf5a583abf3343005eb2c070daef4ee16e.zip) (1.37 KB) the export configuration file  
[MP3List.html](https://community.mp3tag.de/uploads/default/original/1X/36fde4b4fe4c75293b9356db229ca8b60b869c07.html) (28.3 KB) Preview

But I was not satisfied with it; I would like to have more flexibility, like the ability to change the report layout without regenerating the full export from MP3Tag.  
So I've created an XML mte, with which you can export your tags and use different XSL stylesheets to change the layout of your html report.

The structure of the XML is simple:

MP3List  
artist  
album  
track

Each node contains other info which are taken from the MP3Tag export fields.

The second and third lines of the xml files are commented out. Each line refers to a xsl stylesheet that is used to format the output. You can uncomment the line with the stylesheet you want to use or you can create a new one and use it.  
For this to work you need to put the xml file in the same directory of the xsl.

All hyperlinks in the formatted output use relative paths.

This is an XML sample Preview  
[MP3List.xml](https://community.mp3tag.de/uploads/default/original/1X/d32e695fb99d422892ca64057f866344df2e35be.xml) (34.3 KB)

[xml\_squonk.zip](https://community.mp3tag.de/uploads/default/original/1X/946d45ee7b2ef6d35518818270d773ebb942112b.zip) (3.22 KB)  
The zip file contains the xsl\_squonk.mte with two xsl stylesheets:  
the first one, XSL\_simple.xsl creates an HTML similar to the html\_newexport.mte file  
the second, XSL\_squonk.xsl creates an HTML similar to the html\_squonk.mte.

That's all!  
Your comments are welcome...

[xml\_squonk.zip](https://community.mp3tag.de/uploads/default/original/1X/946d45ee7b2ef6d35518818270d773ebb942112b.zip) (3.22 KB)

[html\_squonk.zip](https://community.mp3tag.de/uploads/default/original/1X/f5ef5adf5a583abf3343005eb2c070daef4ee16e.zip) (1.37 KB)

[MP3List.html](https://community.mp3tag.de/uploads/default/original/1X/36fde4b4fe4c75293b9356db229ca8b60b869c07.html) (28.3 KB)

[MP3List.xml](https://community.mp3tag.de/uploads/default/original/1X/d32e695fb99d422892ca64057f866344df2e35be.xml) (34.3 KB)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 18, 2005, 7:35pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/2 "2005-02-18T19:35:15Z")

</div>

Thank you very much for your much appreciated work - very, very nice 🙂

If there are no comments from other users, I'll gladly add it to the [Export Configuration Archive](https://community.mp3tag.de/t/1495/1)

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [February 18, 2005, 7:53pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/3 "2005-02-18T19:53:23Z")

</div>

I'm glad that you find it useful.

You can add it to the archive; let me know if there are comments or if you find errors.

Bye

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 18, 2005, 8:18pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/4 "2005-02-18T20:18:52Z")

</div>

[Added](https://community.mp3tag.de/t/1495/1) 🙂

---

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [February 19, 2005, 11:01am UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/5 "2005-02-19T11:01:27Z")

</div>

> [@](#):
>
> [Added](https://community.mp3tag.de/t/1495/1) 🙂
> 
> \<{POST\_SNAPBACK}\>

Great! 🙂

Maybe I will add some new XSL stylesheet. I will post them too, if you like; you may add them under the XML section of the gallery...

---

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [August 18, 2005, 9:53am UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/6 "2005-08-18T09:53:10Z")

</div>

This is a small update to the xml export configuration file, which adds the album title and the artist name to the track node.

[xml\_squonk.zip](https://community.mp3tag.de/uploads/default/original/2X/3/385ea407fc29dd9653a93cdd135284178191c146.zip) (757 Bytes)

I've added also the md5 tag in a separate export configuration file, because it slows down the export.

[xml\_md5\_squonk.zip](https://community.mp3tag.de/uploads/default/original/2X/5/50ff0d37f9daac38e12584a10f8c0788b9899617.zip) (788 Bytes)

I've created also a new stylesheet with the mp3tag web design, but it uses the logo, css and images from this web site; it's a very nice thing, but I'll upload it only if Florian will give his permission.

Let me know, Florian...

[xml\_squonk.zip](https://community.mp3tag.de/uploads/default/original/2X/3/385ea407fc29dd9653a93cdd135284178191c146.zip) (757 Bytes)

[xml\_md5\_squonk.zip](https://community.mp3tag.de/uploads/default/original/2X/5/50ff0d37f9daac38e12584a10f8c0788b9899617.zip) (788 Bytes)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [August 18, 2005, 6:59pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/7 "2005-08-18T18:59:03Z")

</div>

> [@](#):
>
> I've created also a new stylesheet with the mp3tag web design, but it uses the logo, css and images from this web site; it's a very nice thing, but I'll upload it only if Florian will give his permission.

Thanks for the update!

Feel free to upload your stylesheet - I'll update the entry at the archive when I find a little bit more time 🙂

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [August 18, 2005, 9:56pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/8 "2005-08-18T21:56:49Z")

</div>

Many thanks, Florian. I've done it because I like a lot your web site design.

So, this stylesheet is a mini web site created by the contents of the xml file exported by MP3Tag.  
You can browse the album info, launch your media player from the web page and search xml data for the track titles, album titles or artist name containing the text you specify.

To use it:

1. export your tags from MP3tag using xml\_md5\_squonk configuration file and put the XML file in the root directory containing your music
2. copy in the same directory the content of the MP3TagXSL.zip file (except the readme.txt)
3. Open your MP3List.xml file; if you have XP SP2 installed you may have a security warning because there are some scripts in the xsl file, ignore it because it's safe to open the file.

Don't use the file preview.zip; it is for Florian to setup a preview in the export configuration archive.

[MP3TagXSL.zip](https://community.mp3tag.de/uploads/default/original/2X/9/9d4b4222182d82b8b8ec1c0a1dcb7479e2d327b8.zip) (15.1 KB)

- (23-08 fixed a bug in SearchResults.XSL)

Your comments and enhancements are welcome.  
Enjoy!!

[Preview.zip](https://community.mp3tag.de/uploads/default/original/2X/5/51742dad0baa8678955a0745d1114f97b49da1b8.zip) (8.21 KB)

[MP3TagXSL.zip](https://community.mp3tag.de/uploads/default/original/2X/9/9d4b4222182d82b8b8ec1c0a1dcb7479e2d327b8.zip) (15.1 KB)

---

<div class="post-metadata">

### Author: ![BoraBora](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@BoraBora](https://community.mp3tag.de/u/BoraBora)
#### Post date: [August 26, 2005, 12:41pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/9 "2005-08-26T12:41:08Z")

</div>

Thanks for this XML export, squonk63. Really really nice! 🙂

I have a hard time making it work in Firefox, though. The display is all messed up and the search function doesn't work. Do you think you could fix this? Do you wish me to post a screenshot? There's not a single problem in IE, but I don't use it anymore and I'd like to be able to use Firefox instead.

On another note, would you have some time and will to do another style based on your XML export? I've been hoping for a very long time someone would do a iTunes-like 3-panes export (artist/covers/tracks) and I think your XML file could support it. If you're willing to try it, I'll do some mock-ups in a paint program to illustrate what I have in mind.

---

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [August 28, 2005, 10:57am UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/10 "2005-08-28T10:57:05Z")

</div>

> [@](#):
>
> I have a hard time making it work in Firefox, though. The display is all messed up and the search function doesn't work. Do you think you could fix this? Do you wish me to post a screenshot? There's not a single problem in IE, but I don't use it anymore and I'd like to be able to use Firefox instead.

It was not intended to work with all browser and the script makes use of ActiveX and MSXML, so no surprise that it doesn't work with Firefox...  
Anyway, after your post I've installed a copy of Firefox and googled a lot and I'm looking for a solution; so stay tuned, if I find one I'll post a new version.

> [@](#):
>
> On another note, would you have some time and will to do another style based on your XML export? I've been hoping for a very long time someone would do a iTunes-like 3-panes export (artist/covers/tracks) and I think your XML file could support it. If you're willing to try it, I'll do some mock-ups in a paint program to illustrate what I have in mind.
> 
> \<{POST\_SNAPBACK}\>

Yes, I know the iTunes view you're talking about (the three lists on the top panel, for genre, artist and album and the track list in the down panel) and it can be done with xml, xsl and some Javascript. I like the idea, but I don't know when I'll have the time.  
If you have some ideas an html file will be more useful than a simple image.

Anyway, you can try also by yourself, it's not so difficult...

---

<div class="post-metadata">

### Author: ![BoraBora](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@BoraBora](https://community.mp3tag.de/u/BoraBora)
#### Post date: [August 28, 2005, 1:49pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/11 "2005-08-28T13:49:19Z")

</div>

> [@](#):
>
> It was not intended to work with all browser and the script makes use of ActiveX and MSXML, so no surprise that it doesn't work with Firefox...  
> Anyway, after your post I've installed a copy of Firefox and googled a lot and I'm looking for a solution; so stay tuned, if I find one I'll post a new version.

Thanks! Much appreciated. 🙂

> [@](#):
>
> Yes, I know the iTunes view you're talking about (the three lists on the top panel, for genre, artist and album and the track list in the down panel) and it can be done with xml, xsl and some Javascript. I like the idea, but I don't know when I'll have the time.  
> If you have some ideas an html file will be more useful than a simple image.
> 
> Anyway, you can try also by yourself, it's not so difficult...
> 
> \<{POST\_SNAPBACK}\>

Thanks again! I don't know a lot about XML or even HTML but I'm going to ask around. 🕶

---

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [August 31, 2005, 3:49pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/12 "2005-08-31T15:49:09Z")

</div>

Finally, it works!! Now it behaves the same in IE and Firefox.

[MP3Tag\_XSL.zip](https://community.mp3tag.de/uploads/default/original/2X/7/7491a525ae9c9bc1c766baffc15708fcbffcd6e5.zip) (29.5 KB)

If you use another browser and it works, let us know; if it doesn’t, sorry but I have no time to port it; you have the source, so feel free to change it to make it working with your browser of choice.

Thanks to BoraBora for pointing out the problems with Firefox, and to the Sarissa project for their cross-browser JavaScript implementation of XML/XSL support. You can find it at [Sourceforge](http://sourceforge.net/projects/sarissa)

**What’s new**

1. The XML file is now loaded in a script into MP3Tag\_squonk.htm file which is the new entry point.
2. The XSL style sheets have been moved to the \_css directory
3. I was not able to create a unique XSL file for Firefox and Internet Explorer so there are two MP3Tag\_squonk\__xxx_.xsl, the script loads the correct one based on the browser you are using
4. The JavaScript code is now in \_script/MP3Tag\_squonk.js
5. The new \_script subdirectory contains also the Sarissa code.

**How to use**

1. Export the tags from MP3Tag using this updated xml\_md5\_squonk export. (The only thing changed is that the xsl-stylesheet directive in the XML file has been removed) [xml\_md5\_squonk.zip](https://community.mp3tag.de/uploads/default/original/2X/3/393ff33e7089f3d361f9ad1b835720aa059eb1ad.zip) (787 Bytes)
2. Place the content of the MP3Tag\_XSL.zip file (MP3Tag\_squonk.xml, \_css, \_images and \_script subdir) in the same directory of the exported XML file.
3. Open MP3Tag\_squonk.htm in your browser.

What you have is a mini web summary of your MP3 compilation with a search function to look for song artist or album whose name contains the text you specify.

If you want to change the name used for htm and xml files:  
You can change MP3Tag\_squonk.htm to what you prefer; this does not affect the scripts  
If you change MP3List.xml, then open your htm file and update line 30 with the new filename  
xmlData.load('MP3List.xml'); must be updated to load your xml file.

Hope you like it!

[xml\_md5\_squonk.zip](https://community.mp3tag.de/uploads/default/original/2X/3/393ff33e7089f3d361f9ad1b835720aa059eb1ad.zip) (787 Bytes)

[MP3Tag\_XSL.zip](https://community.mp3tag.de/uploads/default/original/2X/7/7491a525ae9c9bc1c766baffc15708fcbffcd6e5.zip) (29.5 KB)

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [August 31, 2005, 6:36pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/13 "2005-08-31T18:36:07Z")

</div>

> [@](#):
>
> Hope you like it!

It's great!  
Interesting to see what can be done with xml.

---

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [August 31, 2005, 7:32pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/14 "2005-08-31T19:32:08Z")

</div>

> [@](#):
>
> It's great!  
> Interesting to see what can be done with xml.
> 
> \<{POST\_SNAPBACK}\>

Thank you, dano.  
Yes, it’s true; I was surprised too of xml power.  
Usually I play C++ and I began just for kidding, but I’ve learned a lot of interesting things.  
And of course I have some other ideas to play with, so this is only the beginning.

I hope to find the time…

---

<div class="post-metadata">

### Author: ![BoraBora](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@BoraBora](https://community.mp3tag.de/u/BoraBora)
#### Post date: [August 31, 2005, 7:41pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/15 "2005-08-31T19:41:03Z")

</div>

> [@](#):
>
> Finally, it works!!

I just tried it and... yes it does! ![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:") Thanks a lot!

> [@](#):
>
> Hope you like it!

I do! ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:")

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [September 1, 2005, 6:50am UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/16 "2005-09-01T06:50:57Z")

</div>

> [@](#):
>
> Hope you like it!

Yes, for sure! This is really amazing - thanks for your efforts 🙂

Btw, I've updated the export configuration archive.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [September 1, 2005, 9:08am UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/17 "2005-09-01T09:08:32Z")

</div>

> [@](#):
>
> Btw, I've updated the export configuration archive.

Many thanks, Florian.  
The zip you have added is only the .mte to create the xml, while all the presentation stuff is in the file MP3Tag\_XSL.zip. May you add also this to the archive?

[MP3Tag\_XSL.zip](https://community.mp3tag.de/uploads/default/original/2X/7/7491a525ae9c9bc1c766baffc15708fcbffcd6e5.zip) (29.5 KB)

Bye

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [September 1, 2005, 9:10am UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/18 "2005-09-01T09:10:08Z")

</div>

IIRC, I've packed the presentation stuff into the configurations archive 🙂

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [September 1, 2005, 9:17am UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/19 "2005-09-01T09:17:18Z")

</div>

> [@](#):
>
> IIRC, I've packed the presentation stuff into the configurations archive 🙂
> 
> Best regards,  
> ~ Florian
> 
> \<{POST\_SNAPBACK}\>

Oh, sorry. Forget my last post...

bye

---

<div class="post-metadata">

### Author: ![kockroach](https://community.mp3tag.de/user_avatar/community.mp3tag.de/kockroach/32/101_2.png) [@kockroach](https://community.mp3tag.de/u/kockroach)
#### Post date: [January 4, 2006, 5:24pm UTC](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712/20 "2006-01-04T17:24:57Z")

</div>

I really like your export configuration. It's amazing!

I have an issue with the cover art for the albums. It will not display my pictures, and it would seem it is because I use "folder.jpg" instead of "cover.jpg". Is there any way that I can easily change the config to work with "folder" instead of "cover"? I know I could change the names of the cover art, but that could be a pain changing ~300 files.

Also, since my track numbers are "1", "2", "3",... and not "01", "02", "03",..., will it properly sort the tracks if I change

```
<numtrack>%track%</numtrack>

```

to the following

```
<numtrack>$num(%track%,2)</numtrack>

```

I would assume that the .mte file is the only place I would need to make a change.

Thanks.

[Next page](https://community.mp3tag.de/t/xml-and-html-export-configuration-file/1712.md?page=2)
