The HtmlDocument type exposes the following members.
Fields
Name | Description | |
---|---|---|
OptionAddDebuggingAttributes |
Adds Debugging attributes to node. Default is false.
| |
OptionAutoCloseOnEnd |
Defines if closing for non closed nodes must be done at the end or directly in the document.
Setting this to true can actually change how browsers render the page. Default is false.
| |
OptionCheckSyntax |
Defines if non closed nodes will be checked at the end of parsing. Default is true.
| |
OptionComputeChecksum |
Defines if a checksum must be computed for the document while parsing. Default is false.
| |
OptionDefaultStreamEncoding |
Defines the default stream encoding to use. Default is System.Text.Encoding.Default.
| |
OptionExtractErrorSourceText |
Defines if source text must be extracted while parsing errors.
If the document has a lot of errors, or cascading errors, parsing performance can be dramatically affected if set to true.
Default is false.
| |
OptionExtractErrorSourceTextMaxLength |
Defines the maximum length of source text or parse errors. Default is 100.
| |
OptionFixNestedTags |
Defines if LI, TR, TH, TD tags must be partially fixed when nesting errors are detected. Default is false.
| |
OptionOutputAsXml |
Defines if output must conform to XML, instead of HTML.
| |
OptionOutputOptimizeAttributeValues |
Defines if attribute value output must be optimized (not bound with double quotes if it is possible). Default is false.
| |
OptionOutputOriginalCase |
Defines if name must be output with it's original case. Useful for asp.net tags and attributes
| |
OptionOutputUpperCase |
Defines if name must be output in uppercase. Default is false.
| |
OptionReadEncoding |
Defines if declared encoding must be read from the document.
Declared encoding is determined using the meta http-equiv="content-type" content="text/html;charset=XXXXX" html node.
Default is true.
| |
OptionStopperNodeName |
Defines the name of a node that will throw the StopperNodeException when found as an end node. Default is null.
| |
OptionUseIdAttribute |
Defines if the 'id' attribute must be specifically used. Default is true.
| |
OptionWriteEmptyNodes |
Defines if empty nodes must be written as closed during output. Default is false.
|