Introduction to XQuery in SQL Server 2005 http://msdn.microsoft.com/en-us/library/ms345122%28v=sql.90%29.aspx