I\'m pretty new to using XML with TSQL, and recently ran into an issue that I can\'t think around and need your help with.
Scenario: I have a query
You can query the xml as below: Not sure what you are trying to do with GUID.. If you have that column in different table you can do cross apply to below query and get xml's output:
declare @x xml = ''
Select T.c.value('name[1]', 'varchar(20)') as [Name],
T.c.value('value[1]','int') as [Value]
from @x.nodes('form/field') T(c)