I have the following XML string:
<rows>
<row>
<id>
<old>2125</old>
</id>
<name>
<old>test</old>
</name>
<amount>
<old>62</old>
</amount>
</row>
</rows>
Can Linq be used to transform the above into a list of the following class:
public class Row
{
public int Id;
public string Fields;
}
where Fields will contain the above row in this format:
id|2125^name|text^amount|62
var xml = XDocument.Parse(s);. If I can use Linq in a CLR function then using Linq is not a problem.