'Interface'? You said you want to export an xml document, or multiple
documents. And you want to collate these into a single xml document,
whether it's 'table', or whatever it is?
I'm just curious, what, specifically, does this look like? What do you
start with? What's the environment? And what's the result supposed to
be?