I wasn\'t able to find a relevant post, so I decided to ask.
I have the following table in my SQL Server database:
ID attname value
-------
As far as I know, there is no control over the way the output is generated in the FOR XML output, aside from manipulating the data types and field names in the query.
You would need to generate it as it normally does, then reprocess it possibly with XSLT to make it into what you want.
This could actually be done on the server if it has support for the CLR.