I am trying to get the value <getthis>, but it seems that only the string value cannot get. I think it is quite simple, but I can not understand. I am trying to do this with LINQ
XML
<?xml version="1.0" encoding="utf-8"?>
<root>
<item>
<name></name>
<title></title>
</item>
<info>
<getthis>value here</getthis>
<something>another value</something>
</info>
</upload>
I used
var link = from links in doc.Descendants("getthis")
select links;
but I want only value. How to do it?
source
share