Replace “<” and “>” with “<” and “>” in sql server
Hi I am new to for xml I have a query like this SELECT ProjectId, ProjectCode, ProjectName, TechId, -- LocationId, ( SELECT GeoId,PoliticalDivisionId ,GeographicLocationName,IsoCode,Longitude,Latitude,ParentLocationId, t2.CreatedBy,t2.CreatedOn,t2.LastUpdatedBy,t2.LastUpdatedOn FROM GeographicLocation t2 WHERE GeoId = t1.LocationId FOR XML PATH('Location') ), RtoId, CreatedBy, CreatedOn, LastUpdatedBy, LastUpdatedOn FROM Project t1 where ProjectId=1 FOR XML PATH('ProjectInfo') it return the xml as <ProjectInfo> <ProjectId>1</ProjectId> <ProjectCode>US-W1-00001</ProjectCode> <ProjectName>Rees<