I have the xml in the following format :
<parent>
<child id="1"> test1 </child>
<child id="2"> test2 </child>
</parent>
How can I get the csv of all the childnodes ? Like , this is how I need it :
<parent>
<children>1|test1;2|test2</children>
</parent>
where | and ; are delimiters.
Any suggestions how it can be done using LINQ ?
1 Answer