I'm looking for a simpler way to format a query output using a DTD / XSD file.

If you know Altova mapforce, you know what I mean. A way to link the query columns with the schema.

The reason I'm looking for a way to program it, is that training people into learning mapforce is a bit too extensive, and I don't fancy sitting all day formatting query output files using mapforce all day.

Thanks in advance,