Hi allI am trying to use FOR XML PATH to extact xml in a specific format. One field in a child table contains an xml blob. I want to extract it without having to use a query method, which is a lot less performant.However, I keep getting an additional xml node.Does anyone know how to obtain the xml without including this additional node????Below is a sample of what I want and what I am getting:CREATE TABLE #Parent (ParentID int)CREATE TABLE #Child (ChildID int, ParentId int, CatalogueItem xml)INSERT INTO #ParentSELECT 1INSERT INTO #ChildSELECT 1,1,'<Child ChildID = "1" SomeStuff = "Stuff"/>'UNIONSELECT 2,1,'<Child ChildID = "1" SomeStuff = "Stuff"/>'-- Incorrect outputSELECT ParentID AS '@Parent', ( SELECT CatalogueItem FROM #Child c INNER JOIN #Parent p ON p.ParentID = c.ParentID FOR XML PATH (''), TYPE )FROM #Parent pWHERE ParentID = 1FOR XML PATH ('Parent')/*--RESULTSParent Parent="1"> <CatalogueItem> <Child ChildID="1" SomeStuff="Stuff" /> </CatalogueItem> <CatalogueItem> <Child ChildID="1" SomeStuff="Stuff" /> </CatalogueItem></Parent>*/-- Required outputSELECT ParentID AS '@Parent', ( SELECT CatalogueItem.query('Child') FROM #Child c INNER JOIN #Parent p ON p.ParentID = c.ParentID FOR XML PATH (''), TYPE )FROM #Parent pWHERE ParentID = 1FOR XML PATH ('Parent')/*--RESULTS<Parent Parent="1"> <Child ChildID="1" SomeStuff="Stuff" /> <Child ChildID="1" SomeStuff="Stuff" /></Parent>*/DROP TABLE #ParentDROP TABLE #ChildThanks in advanceHearty head pats