Table of Contents

Class HtmlTableParserWiki

Namespace
SunamoWikipedia._public.SunamoHtml.Html
Assembly
SunamoWikipedia.dll

Parses HTML tables from Wikipedia pages into structured data.

public class HtmlTableParserWiki
Inheritance
HtmlTableParserWiki
Inherited Members
Extension Methods

Constructors

HtmlTableParserWiki(object, bool)

Initializes a new instance of the HtmlTableParserWiki class.

public HtmlTableParserWiki(object tableNode, bool isIncludingHeaders)

Parameters

tableNode object

The HTML table node to parse.

isIncludingHeaders bool

Whether to include header rows in the parsed output.

Methods

ColumnValues(string, bool, bool)

Gets the values of a specific column from the parsed table.

public List<string> ColumnValues(string columnName, bool isTrimming, bool isDecodingHtml)

Parameters

columnName string

The name of the column to retrieve values from.

isTrimming bool

Whether to trim whitespace from the values.

isDecodingHtml bool

Whether to HTML-decode the values.

Returns

List<string>

A list of column values as strings.