3
我想获得值<getthis>
,但似乎无法得到只是字符串值。我认为这很简单,但我似乎无法得到它。我试图使用LINQC#/ LINQ:如何查询此XML结构
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>
做到这一点我用
var link = from links in doc.Descendants("getthis")
select links;
,但我只想要值。我该怎么做?