# Read Tag-data from XML-file

**URL:** https://community.mp3tag.de/t/read-tag-data-from-xml-file/13814
**Category:** Support
**Created:** [August 30, 2012, 7:17am UTC](https://community.mp3tag.de/t/read-tag-data-from-xml-file/13814 "2012-08-30T07:17:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ruedigers](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f0a364/32.png) [@ruedigers](https://community.mp3tag.de/u/ruedigers)
#### Post date: [August 30, 2012, 7:17am UTC](https://community.mp3tag.de/t/read-tag-data-from-xml-file/13814/1 "2012-08-30T07:17:22Z")

</div>

Hallo folks,

we have a set of mp4 files with an accompaning xml-file that holds the meta-data about the clip, like title, language etc.

- TEST00619\_dh.mp4 (hires clip)
- TEST00619\_dl.mp4 (lores clip)
- TEST00619.XML

We would like to put that metadata into the proper tags with mp3tag.

Is there a way to do that with the import-text-file?

Thanks in advance,  
RooDee

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 30, 2012, 10:34am UTC](https://community.mp3tag.de/t/read-tag-data-from-xml-file/13814/2 "2012-08-30T10:34:27Z")

</div>

> [@RooDee](#):
>
> ... TEST00619.XML  
> We would like to put that metadata into the proper tags with mp3tag.  
> Is there a way to do that with the import-text-file? ...

If there is a chance to convert the XML data into a CSV alike format, then it would be possible to use Mp3tag converter "Textfile - Tag".

For example see there ...  
[http://www.luxonsoftware.com/opensource/xmltocsv](http://www.luxonsoftware.com/opensource/xmltocsv)  
[http://xmltocsv.codeplex.com/](http://xmltocsv.codeplex.com/)

DD.20120830.1434.CEST

---

<div class="post-metadata">

### Author: ![ruedigers](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f0a364/32.png) [@ruedigers](https://community.mp3tag.de/u/ruedigers)
#### Post date: [September 7, 2012, 3:25am UTC](https://community.mp3tag.de/t/read-tag-data-from-xml-file/13814/3 "2012-09-07T03:25:26Z")

</div>

> [@DetlevD](#):
>
> If there is a chance to convert the XML data into a CSV alike format, then it would be possible to use Mp3tag converter "Textfile - Tag".
> 
> For example see there ...  
> [http://www.luxonsoftware.com/opensource/xmltocsv](http://www.luxonsoftware.com/opensource/xmltocsv)  
> [http://xmltocsv.codeplex.com/](http://xmltocsv.codeplex.com/)
> 
> DD.20120830.1434.CEST

Thanks so far! I think I am on track now. I will generate my own csv's with a small script.

However my task is a bit more complex than just one file.

I have about 1000 clips, which will be english (e) and german (d) in high (h) and low (l) quality, which is designated by the file name. Each set of 4 files has an .xml that goes with it, which I will now make into an english and a german .csv.

All clips with number 619 contain the same "video"-content in high or low quality, just the speaker is German or English:

> data00619-dh.mp4 \<-- german high Q data00619-dl.mp4 \<-- german low Q data00619-eh.mp4 \<-- english high Q data00619-el.mp4 \<-- english low Q data00619.xml \<-- contains both english and german meta-information data00619-d.csv \<-- german data00619-e.csv \<-- english

I got this to work: ![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:")

**Action group**

1. import text file (with filename of clip) into a dummy tag, e.g. comment  
filename: %\_folderpath%$left(%\_filename%,$sub($len(%\_filename%),1)).csv

2. Guess-Values  
Source Values: %comment%  
Guessing pattern: %title%;%album%;%genre%;%language%

3. Remove Fields: %comments%

Is there a more straightforward way to do this? ![:unsure:](https://community.mp3tag.de/uploads/default/original/1X/cfaeba84fe6704387c5b34dfdd8172bd51b6f533.gif ":unsure:")

Thanks a bunch in advance! 🙂

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [September 7, 2012, 4:10am UTC](https://community.mp3tag.de/t/read-tag-data-from-xml-file/13814/4 "2012-09-07T04:10:34Z")

</div>

> [@RooDee](#):
>
> Thanks so far! I think I am on track now. I will generate my own csv's with a small script. ... I got this to work ... Is there a more straightforward way to do this? ...

Nice to hear that you got it working!  
As I said above ... the intended way is using the Mp3tag converter ...  
[https://docs.mp3tag.de/converters/import-tags-from-text-files](https://docs.mp3tag.de/converters/import-tags-from-text-files)  
... but your way allows to do it by an action group.

DD.20120907.0810.CEST

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:24pm UTC](https://community.mp3tag.de/t/read-tag-data-from-xml-file/13814/5 "2026-02-09T12:24:01Z")

</div>


