I have a CLR stored procedure that receives raw XML as a parameter, for example:
SET @xml = (SELECT * FROM titles FOR XML RAW)
Will give
<row id="1" description="Mr." />
<row id="2" description="Mrs." />
The above @xml
is passed to a generic CLR stored procedure that in turn needs to parse the data it receives.
Is there a simple way to transform the raw XML into a list in C#?