2006-07-06から1日間の記事一覧

System.Xml

C#

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