I’m looking for a way to unpivot xml node attributes, where the node name/attribute names are unknown, in TSQL
DECLARE @Raw XML = '<contact id=1 firstname="liz" lastname="simple" email="liz@sample.com"/>'
I need results that look like:
id 1
firstname liz
lastname simple
email liz@sample.com
Query
Result