System.Xml
HTML文書をパースするために、DOMを使い倒す。
- HTML文書(a.html)
<html> </html>
- HTML文書をパースする
XmlDocument document = new XmlDocument();
document.Load("a.html");
XmlElement rootElement = document.DocumentElement;
MessageBox.Show(rootElement.Name); // "html"