<html>
<head>
</head>
<body>
<section>
<div>
</div>
</section>
<section>
<div>
</div>
Line 1
Line 2 - Text here
Line 3
<div>
</div>
</section>
</body>
</html>
这是我的代码:
Dim getPage As HtmlDocument = webGet.Load(Uri)
Dim AllTextLines As HtmlNodeCollection = getPage.DocumentNode.SelectNodes("/html/body/section[2]/text()")
Dim SecondTextLine As HtmlNodeCollection = getPage.DocumentNode.SelectNodes("/html[1]/body[1]/section[2]/#text[2]")