Reputation: 3
When I run the below query:
SELECT c.FirstName
FROM HumanResources.Employee e
INNER JOIN Person.Contact c
ON c.ContactID = e.ContactID
WHERE c.FirstName = 'Rob'
FOR XML RAW ('Employee');
I get the following result:
<Employee FirstName="Rob"/>
I'm wondering is there a way that I can format it like below:
<Employee>Rob<Employee/>
Upvotes: 0
Views: 55