My MS SQL table has following data
ID CONTENT UDH TO FROM
-------------------------------------------
1 HELLO 1 9812 22
2 HELLO 1 9813 22
3 HELLO 1 9814 22
and i want to select values from this table in below format without any root node.
<SMS CONTENT="HELLO" UDH="1">
<ADDRESS TO="9812" FROM="22"/>
</SMS>
<SMS CONTENT="HELLO" UDH="1">
<ADDRESS TO="9813" FROM="22"/>
</SMS>
<SMS CONTENT="HELLO" UDH="1">
<ADDRESS TO="9814" FROM="22"/>
</SMS>
it is a clear version of what i posted earlier here