How do I get the contents between two nodes (under the same parent node) as a string...for example, assume there is a xml file as
version="1.0"?> - <main>
- <abc>This is <day>1day> the <day>5day>th <month>Novembermonth> <year>1993year><abc>
- <xyz>It does not matter what <day>10day> it is <day>3day> of <day>19day><xyz>
>
" the ", " it is " and " of ".
I think it's gonna look something similar to
var nodes = Doc.DescendantNodes().OfType().Select(a=>a.Value)
but I cannot figure exactly how?
Can someone help...?

Rajneesh ChaubeyRank #1,073 · 1.8K reputationPosted Mar 8, 2018, 4:43 AM EST
ValoChele60 reputationPosted Mar 8, 2018, 4:51 AM EST
Nanddeep NachanRank #38 · 35.2K reputationPosted Mar 8, 2018, 8:12 PM EST