here is the sample in VB.NET, u can find a neat explination for each and every statement...
and also download the below document sure it will help u a lotz, u can learn many more with XML data type in SQL Server
XML Support in Microsoft SQL Server
------------------------------------------
http://download.microsoft.com/download/f/1/c/f1cf7b8d-7fb9-4b71-a658-e748e67f9eba/XML_Support_in_SQL.doc
hope it helps...
Narayanan Dayalan - Zeetaa Business Solutions -------
Please "Mark As Answer", if my answer works well with ur Query