i have a table named 'Words' in sql server with these columns: Id, Type, Word
i want to write a query to generate a xml like this
<Words>
<Word Id="1" Type="8">some text1</Word>
<Word Id="2" Type="4">some text2</Word>
<Word Id="3" Type="5">some text3</Word>
</Words>
how can i do that?