HtmlDocumentParse(HtmlNodeCollection, StringTokenCollection, Int32, Boolean, Boolean) Method

Parse the HTML elements token list into individual nodes.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static int Parse(
	HtmlNodeCollection nodes,
	StringTokenCollection tokens,
	int tokenIndex,
	bool comments,
	bool preserveSpace
)

Parameters

nodes  HtmlNodeCollection
Reference to the collection of nodes to which each item will be added.
tokens  StringTokenCollection
Reference to the collection of string tokens containing the valid HTML elements.
tokenIndex  Int32
Index of the current token to be parsed in the sequential list.
comments  Boolean
Value indicating whether to include comments in the output/
preserveSpace  Boolean
Value indicating whether to preserve all space in the document.

Return Value

Int32
Index of the last captured token.

See Also