<TR><TD><TD><TD COLSPAN=3><B>CPU Physical Info:</B> <TR><TD><TD><TD><TD>Package Type <TD>775 Contact FC-LGA8 <TR><TD><TD><TD><TD>Package Size <TD>37.5 mm x 37.5 mm <TR><TD><TD><TD><TD>Transistors <TD>456 million <TR><TD><TD><TD><TD>Process Technology <TD>45 nm, CMOS, Cu, High-K Gate <TR><TD><TD><TD><TD>Die Size <TD>164 mm2 <TR><TD><TD><TD><TD>Core Voltage <TD>1.100 - 1.262 V <TR><TD><TD><TD><TD>I/O Voltage <TD>1.100 - 1.262 V <TR><TD><TD><TD><TD>Typical Power <TD>95 W @ 2.83 GHz <TR><TD>
Quote:You should use the HTML Agility Pack. For example: (Tested) C# var doc = new HtmlDocument(); doc.LoadHtml(s); var dict = doc.DocumentNode.Descendants("tr") .ToDictionary( tr => int.Parse(tr.Descendants("td").First().InnerText), tr => int.Parse(tr.Descendants("td").Last().InnerText) ); If the HTML will always be well-formed, you can use LINQ-to-XML; the code would be almost identical.
You should use the HTML Agility Pack.
For example: (Tested)
var doc = new HtmlDocument(); doc.LoadHtml(s); var dict = doc.DocumentNode.Descendants("tr") .ToDictionary( tr => int.Parse(tr.Descendants("td").First().InnerText), tr => int.Parse(tr.Descendants("td").Last().InnerText) );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)