do you mean this?DECLARE @idoc intDECLARE @doc xmlSET @doc ='<ROOT><first att="att"><second>att</second></first><first att="dtt"><second>dtt</second></first><first att="we"><second>we</second></first><first att="att"><second>att2</second></first></ROOT>'SELECT t.u.value('./second[1]','varchar(10)') as [second],t.u.value('.','varchar(10)') as [first]FROM @doc.nodes('/ROOT/first[@att="att"]') t(au)output----------------------------second first---------- ----------att attatt2 att2------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/