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...?
Nanddeep NachanPosted Mar 9, 2018, 1:12 AM
ValoChelePosted Mar 8, 2018, 9:51 AM
Rajneesh ChaubeyPosted Mar 8, 2018, 9:43 AM