.net 嵌套div htmlagilitypack中的div文本

.net 嵌套div htmlagilitypack中的div文本,.net,winforms,html-parsing,html-agility-pack,.net,Winforms,Html Parsing,Html Agility Pack,我有div元素 <div title="View this search: Actives"> <div style="float:right;"> <span class="count" title="some title" id="search_201204"> 34 New or Changed </span> <span id="trash_2012">&nbsp;&nbsp;X</span> <

我有div元素

<div title="View this search: Actives">
<div style="float:right;">
<span class="count" title="some title" id="search_201204">
34 New or Changed
</span>
<span id="trash_2012">&nbsp;&nbsp;X</span>
</div>
The value i need
<div style="padding-left:20px;color:#888"></div>
</div>
这给了我

34新的或更改的X我需要的值

而不是

我需要的价值

这是外分区的文本

请提供您的任何解决方案


谢谢尝试使用以下XPath:

//div[contains(@title, 'View this search:')]/child::text()/following-sibling::text()

非常感谢。你是否使用过任何工具来构建这条语句,或者你是如何理解的?
//div[contains(@title, 'View this search:')]/child::text()/following-sibling::text()