47
1
using System;
2
using HtmlAgilityPack;
3
using System.Xml;
4
using System.Collections.Generic;
5
using System.Linq;
6
7
public class Program
8
{
9
public static void Main()
10
{
11
//string html = "<table style='box-sizing: border-box; border-collapse: collapse; border-spacing: 0px; max-width: 100%; position: relative; table-layout: fixed; width: 2034px; z-index: 1; color: rgb(0, 0, 0); font-family: Lato, Roboto, Arial, Tahoma, sans-serif; font-size: 10px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; border-top: 0px none; margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 1.5em'> <thead style='box-sizing: border-box'> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> CMS</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Usage</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Change Since Jan 1</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Market Share</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Change Since Jan 1</th> </tr> </thead> <tfoot style='box-sizing: border-box'> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> Totals</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 33.3%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> </td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 76%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> </td> </tr> </tfoot> <tbody style='box-sizing: border-box'> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> WordPress</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 25.8%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> +0.2%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 59.1%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> +0.3%</td> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> Joomla</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 2.8%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> No Change</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 6.4%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> No Change</td> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> Drupal</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 2.2%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> +0.1%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 4.9%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> No Change</td> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> Magento</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 1.3%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> +0.1%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 2.9%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> No Change</td> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> Blogger</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 1.2%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> No Change</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 2.7%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> No Change</td> </tr> </table>";
12
//string html="<table style='box-sizing: border-box; border-collapse: collapse; border-spacing: 0px; border-top: 0px; margin: 0px 0px 1.5em; max-width: 100%; position: relative; table-layout: fixed; width: 2034px; z-index: 1; color: rgb(0, 0, 0); font-family: Lato, Roboto, Arial, Tahoma, sans-serif; font-size: 10px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'><caption style='box-sizing: border-box;'>Most Popular Content Management Systems</caption><thead style='box-sizing: border-box;'><tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240);'><th style='box-sizing: border-box; padding: 12px; background: rgba(0, 0, 0, 0.05); font-weight: bold; border-bottom: 1px solid rgba(0, 0, 0, 0.05); text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle;'>CMS</th><th style='box-sizing: border-box; padding: 12px; background: rgba(0, 0, 0, 0.05); font-weight: bold; border-bottom: 1px solid rgba(0, 0, 0, 0.05); text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle;'>Usage *</th><th style='box-sizing: border-box; padding: 12px; background: rgba(0, 0, 0, 0.05); font-weight: bold; border-bottom: 1px solid rgba(0, 0, 0, 0.05); text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle;'>Change Since Jan 1</th><th style='box-sizing: border-box; padding: 12px; background: rgba(0, 0, 0, 0.05); font-weight: bold; border-bottom: 1px solid rgba(0, 0, 0, 0.05); text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle;'>Market Share *</th><th style='box-sizing: border-box; padding: 12px; background: rgba(0, 0, 0, 0.05); font-weight: bold; border-bottom: 1px solid rgba(0, 0, 0, 0.05); text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle;'>Change Since Jan 1</th></tr></thead><tfoot style='box-sizing: border-box;'><tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240);'><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>Totals</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>33.3%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'></td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>76%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'></td></tr><tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240);'><td colspan='5' style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>*<span> </span><strong style='box-sizing: border-box; font-weight: bold;'>Usage</strong><span> </span>is percentage of surveyed websites that use the associated CMS.<span> </span><strong style='box-sizing: border-box; font-weight: bold;'>Market Share</strong><span> </span>is the percentage of surveyed websites powered by a CMS that use the associated CMS. For example, 25.8% of all surveyed websites use WordPress, and WordPress commands 59.1% market share of the total CMS market.</td></tr><tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240);'><td colspan='5' style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>The data in this table is provided courtesy of<span> </span><a href='http://w3techs.com/' target='_blank' style='box-sizing: border-box; background: transparent; color: rgb(63, 136, 197); text-decoration: none; transition: all 0.2s ease-in-out;'>W3Techs</a><span> </span>and was captured in February 2016. To learn more about this topic visit the<span> </span><a href='http://w3techs.com/technologies/overview/content_management/all' target='_blank' style='box-sizing: border-box; background: transparent; color: rgb(63, 136, 197); text-decoration: none; transition: all 0.2s ease-in-out;'>overview of content management systems</a><span> </span>from W3Techs.</td></tr></tfoot><tbody style='box-sizing: border-box;'><tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240);'><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>WordPress</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>25.8%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>+0.2%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>59.1%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>+0.3%</td></tr><tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240);'><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>Joomla</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>2.8%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>No Change</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>6.4%</td><td rowspan='4' style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>No Change</td></tr><tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240);'><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>Drupal</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>2.2%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>+0.1%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>4.9%</td></tr><tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240);'><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>Magento</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>1.3%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>+0.1%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>2.9%</td></tr><tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240);'><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>Blogger</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>1.2%</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>No Change</td><td style='box-sizing: border-box; padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; vertical-align: middle;'>2.7%</td></tr></tbody></table><span style='box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, Roboto, Arial, Tahoma, sans-serif; font-size: 10px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'><br style='box-sizing: border-box;'><br style='box-sizing: border-box;'>Read more:<span> </span><a href='https://html.com/tables/tutorial/#ixzz55PAKowvo' style='box-sizing: border-box; background: transparent; color: rgb(0, 51, 153); text-decoration: none; transition: all 0.2s ease-in-out;'>https://html.com/tables/tutorial/#ixzz55PAKowvo</a></span>";
13
string html ="<table style='box-sizing: border-box; border-collapse: collapse; border-spacing: 0px; max-width: 100%; position: relative; table-layout: fixed; width: 2034px; z-index: 1; color: rgb(0, 0, 0); font-family: Lato, Roboto, Arial, Tahoma, sans-serif; font-size: 10px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; border-top: 0px none; margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 1.5em'> <caption style='box-sizing: border-box'>Most Popular Content Management Systems</caption> <thead style='box-sizing: border-box'> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> CMS</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Usage *</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Change Since Jan 1</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Market Share *</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Change Since Jan 1</th> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Type</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Percentage</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Date</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Percentage</th> <th style='box-sizing: border-box; font-weight: bold; text-align: left; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px; background: rgba(0 0 0.05)'> Change Since Jan 1</th> </tr> </thead> <tfoot style='box-sizing: border-box'> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> Totals</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 33.3%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> </td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 76%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> </td> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td colspan='5' style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> * <strong style='box-sizing: border-box; font-weight: bold'>Usage</strong> is percentage of surveyed websites that use the associated CMS. <strong style='box-sizing: border-box; font-weight: bold'>Market Share</strong> is the percentage of surveyed websites powered by a CMS that use the associated CMS. For example, 25.8% of all surveyed websites use WordPress, and WordPress commands 59.1% market share of the total CMS market.</td> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td colspan='5' style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> The data in this table is provided courtesy of <a target='_blank' style='box-sizing: border-box; color: rgb(63, 136, 197); text-decoration: none; transition: all 0.2s ease-in-out; background:' href='http://w3techs.com/'>W3Techs</a> and was captured in February 2016. To learn more about this topic visit the <a target='_blank' style='box-sizing: border-box; color: rgb(63, 136, 197); text-decoration: none; transition: all 0.2s ease-in-out; background:' href='http://w3techs.com/technologies/overview/content_management/all'>overview of content management systems</a> from W3Techs.</td> </tr> </tfoot> <tbody style='box-sizing: border-box'> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> WordPress</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 25.8%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> +0.2%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 59.1%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> +0.3%</td> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> Joomla</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 2.8%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> No Change</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 6.4%</td> <td rowspan='4' style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> No Change</td> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> Drupal</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 2.2%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> +0.1%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 4.9%</td> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> Magento</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 1.3%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> +0.1%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 2.9%</td> </tr> <tr style='box-sizing: border-box; border-bottom: 1px solid rgb(240, 240, 240)'> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> Blogger</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 1.2%</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> No Change</td> <td style='box-sizing: border-box; font-family: inherit; font-size: inherit; vertical-align: middle; border-bottom: 0.05) solid rgba(0; padding: 12px'> 2.7%</td> </tr> </tbody> </table>";
14
15
HtmlDocument htmlDoc = new HtmlDocument();
16
17
htmlDoc.LoadHtml(html);
18
19
var table = htmlDoc.DocumentNode.SelectSingleNode("//table[1]"); //select first table
20
21
int columnUpperBound = 0;
22
HtmlNodeCollection rows = table.SelectNodes("//tr"); //select are rows in first table
23
24
int colCnt = 0;
Cached Result