Got itDECLARE @x xml SET @x='<geeps:root xmlns:geeps="http://www.geeps/schema"> <geeps:data1> <geeps:subdata>123234</geeps:subdata> </geeps:data1> <geeps:data2> <geeps:cage>09998</geeps:cage> <geeps:part_number>12234</geeps:part_number> </geeps:data2> <geeps:data2> <geeps:cage>04568</geeps:cage> <geeps:part_number>1ASD4</geeps:part_number> </geeps:data2> <geeps:data2> <geeps:cage>ASBB7</geeps:cage> <geeps:part_number>ZZZSSD4</geeps:part_number> </geeps:data2></geeps:root>'SELECT T.c.value('declare namespace geeps="http://www.geeps/schema"; (.)[1]', 'varchar(100)') AS partno,T.c.value('declare namespace geeps="http://www.geeps/schema"; (../geeps:cage)[1]', 'varchar(100)') AS cagenoFROM @x.nodes('declare namespace geeps="http://www.geeps/schema"; (/geeps:root/geeps:data2/geeps:part_number)') T(c)GO