you can do something likedeclare @x table(x xml)insert @xvalues('<Absence><date_from>2013-08-19T00:00:00+01:00</date_from><date_to>2013-08-19T00:00:00+01:00</date_to><absence_type>AAWS</absence_type><represents>S</represents></Absence>')SELECT t.u.value('(./date_from)[1]','datetime') as date_from,t.u.value('(./date_to)[1]','datetime') as date_to,t.u.value('(./absence_type)[1]','varchar(15)') as absence_type,t.u.value('(./represents)[1]','varchar(5)') as representsFROM @x t1CROSS APPLY x.nodes('Absence')t(u)output----------------------------------date_from date_to absence_type represents2013-08-18 23:00:00.000 2013-08-18 23:00:00.000 AAWS SNB:- I've updated your XML value to make it well formed (it was missing closing tag for Absence)
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs