D'oh,
That's exactly what I was looking for. Somehow I managed to miss it.
So, in keeping with my new tradition, I have another stupid question.
I've exported a scene (with models and textures) to XML by the method you mention above. It contains a texture_list element with a number of texture elements.
When the scene is loaded back (using Loader) it mentions that the textures have been "added to texture manager" but the scene is rendered without textures. I've tried changing the names of the textures in the XML file, but nothing different happens.
Any ideas? Is there something else I have to do to make the textures work?