如何使用 C#获取div
类或更多的内容?in
我有以下 HTML 代码:
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<div id="xxx">
<div class="in">
<a href="/a/show/7184569" class="mm">ВАЗ 2121</a> <span class="for">за</span>
<span class="price">2 700 $</span>
<br />
<span class="year">1990 г.</span><br />
<div style="margin: 3px 0 3px 0">contentxxx</div>
</div>
</div>
</body>
</html>
我想获取内容,div class="in"
结果是:
<div class="in">
<a href="/a/show/7184569" class="mm">ВАЗ 2121</a> <span class="for">за</span>
<span class="price">2 700 $</span>
<br />
<span class="year">1990 г.</span><br />
<div style="margin: 3px 0 3px 0">contentxxx</div>
</div>