That works, but it would probably be better to create a legitimate XML tree structure that is streamed out to the files.
The big concern would be formatting for readability. Elements like artist name should be output on a single line.
We want this:
<artist><unkn>Dwight Yoakam</unkn></artist>
Not this:
<artist>
<unkn>Dwight Yoakam</unkn>
</artist>
Technically, this probably means new features added to the medialibrary codebase to support XML output to the objects, but the code could be duplicated here.
The XML output is just string print operations.
That works, but it would probably be better to create a legitimate XML tree structure that is streamed out to the files.
The big concern would be formatting for readability. Elements like artist name should be output on a single line.
We want this:
Not this:
Technically, this probably means new features added to the
medialibrary
codebase to support XML output to the objects, but the code could be duplicated here.