Okay, I see now how to make an export (to HTML) template. It shouldn't be too difficult to create a template that writes XML. If there was a way to import that, or to somehow create customizable import templates, that would solve the problem...