我的應用程序應該解析html並將內容加載到列表框中。我能夠通過webclient獲取html,但被卡在解析它。
我聽說過Htmlagilitypack和Fizzler,但找不到任何教程或例子的使用。使用C#解析html 8 for windows樣式的應用程序,XAML
我需要一些幫助,將「first_content」和「second_content」從下面顯示的html文檔中抓取到列表框中。
<html>
<body>
<div>
<section>
<article>
<header>
<hgroup>
<h1>
first_content
</h1>
</hgroup>
</header>
<ul>
<li>
second_content
</li>
</ul>
</article>
</section>
</div>
</body>
</html>
對於「你做了什麼?系列,你嘗試用一個原始的XmlReader嗎? –
我有點佩服[努力](http://stackoverflow.com/posts/14756076/edit/05cfc11a-9a36-4fde-90da-8422f82b9f94)你格式化你的問題,但請閱讀[格式化常見問題] (http://stackoverflow.com/editing-help),以適當的方式做起來容易得多。 – GSerg