HTMLchunk Fields

Majestic12

High-performance .NET C# HTMLparser Library

HTMLchunk Fields

The fields of the HTMLchunk class are listed below. For a complete list of HTMLchunk class members, see the HTMLchunk Members topic.

Public Instance Fields

bHashMode If true then tag params will be kept in a hash rather than in a fixed size arrays. This will be slow down parsing, but make it easier to use.
cParamChars Character used to quote param's value: it is taken actually from parsed HTML
iChunkLength Length of the chunk in bHTML data array
iChunkOffset Offset in bHTML data array at which this chunk starts
iParams Number of parameters and values stored in sParams array, OR in oParams hashtable if bHashMode is true
oEnc Encoder to be used for conversion of binary data into strings, Encoding.Default is used by default, but it can be changed if top level user of the parser detects that encoding was different
oHTML For TAGS: it stores raw HTML that was parsed to generate thus chunk will be here UNLESS HTMLparser was configured not to store it there as it can improve performance For TEXT or COMMENTS: actual text or comments - you MUST call Finalise(); first.
oParams Hashtable with tag parameters: keys are param names and values are param values. ONLY used if bHashMode is set to TRUE.
oType Chunk type showing whether its text, open or close tag, comments or script. WARNING: if type is comments or script then you have to manually call Finalise(); method in order to have actual text of comments/scripts in oHTML variable
sParams Param names will be stored here - actual number is in iParams. ONLY used if bHashMode is set to FALSE.
sTag If its open/close tag type then this is where lowercased Tag will be kept
sValues Param values will be stored here - actual number is in iParams. ONLY used if bHashMode is set to FALSE.

See Also

HTMLchunk Class | Majestic12 Namespace