How to retrieve xml type data from non xml type column using SQL I am having one table and a column inside it xml is a column of type ntext
xml column data example is given below
<message to="4075@abc.myftp.org" type="chat" from="5082@abc.myftp.org/e76bea0f">
<body>james bond</body>
<active xmlns="http://jabber.org/protocol/chatstates" />
</message>
I want to fetch "to","from" attribute value and also tag value
Please suggest