:-( I'm looking to finally add "recently used files" support to my command line programs, to make attaching files to mails more convenient, but the XDG spec doesn't have a valid DTD

XDG Desktop Bookmark Spec - also used for the recently used files, but the DTD is not valid for recently-used.xbel

XBEL homepage - some kind of XBEL, but not applicable for ingesting existing files

[Corion]: (and of course, manually editing the file results in either no change, or an empty recently-used list, without error messages to validate. And all things I find online are parsers, not writers) [Corion]: I guess I have to dive into the ad-hoc generators and parsers, and generate a DTD from that :-(

Some shell script that does the reverse

Via Stackoverflow some Python library that points to Gtk.RecentManager. that points to gtkrecentmanager.c that points to gbookmarkfile.c

This feels like a good small project to look into perlclass.

The code in the original Aramaic does XML by manipulating strings. Yay.

Approach