需要创建摘要/索引。
为此,我有标记<Document-Title> My Title </Document-Title>
如何使用HTML Agility Pack获取这些标记?
我尝试过这个:
HtmlDocument html = new HtmlDocument();
html.Load(new StringReader(Document.Content)); //Is the <html> I'm load in database
var titles = html.DocumentNode.SelectNodes("//Document-Title");
但标题为空。