我的大脑今天不工作了。如何选择在xml文件中只出现一次的"IDValue“?
<?xml version="1.0" encoding="UTF-8"?>
<response>
<result>
<Property>
<PropertyID>
<Identification>
<IDValue>8361</IDValue>
<OrganizationName>Lynd Company</OrganizationName>
</Identification>
</PropertyID>
</Property>
</result>
</response>
发布于 2013-01-19 04:27:01
var doc = XDocument.Load("pathtoXml");
var value = doc.Descendants("IDValue").SingleOrDefault().Value;
https://stackoverflow.com/questions/14406980
复制相似问题