HtmlDocument Class |
Namespace: WorkflowGen.My.HtmlAgilityPack
The HtmlDocument type exposes the following members.
Name | Description | |
---|---|---|
HtmlDocument |
Creates an instance of an HTML document.
|
Name | Description | |
---|---|---|
CheckSum |
Gets the document CRC32 checksum if OptionComputeChecksum was set to true before parsing, 0 otherwise.
| |
DeclaredEncoding |
Gets the document's declared encoding.
Declared encoding is determined using the meta http-equiv="content-type" content="text/html;charset=XXXXX" html node.
| |
DocumentNode |
Gets the root node of the document.
| |
Encoding |
Gets the document's output encoding.
| |
ParseErrors |
Gets a list of parse errors found in the document.
| |
Remainder |
Gets the remaining text.
Will always be null if OptionStopperNodeName is null.
| |
RemainderOffset |
Gets the offset of Remainder in the original Html text.
If OptionStopperNodeName is null, this will return the length of the original Html text.
| |
StreamEncoding |
Gets the document's stream encoding.
|
Name | Description | |
---|---|---|
CreateAttribute(String) |
Creates an HTML attribute with the specified name.
| |
CreateAttribute(String, String) |
Creates an HTML attribute with the specified name.
| |
CreateComment |
Creates an HTML comment node.
| |
CreateComment(String) |
Creates an HTML comment node with the specified comment text.
| |
CreateElement |
Creates an HTML element node with the specified name.
| |
CreateNavigator |
Creates a new XPathNavigator object for navigating this HTML document.
| |
CreateTextNode |
Creates an HTML text node.
| |
CreateTextNode(String) |
Creates an HTML text node with the specified text.
| |
DetectEncoding(Stream) |
Detects the encoding of an HTML stream.
| |
DetectEncoding(TextReader) |
Detects the encoding of an HTML text provided on a TextReader.
| |
DetectEncoding(String) |
Detects the encoding of an HTML file.
| |
DetectEncodingAndLoad(String) |
Detects the encoding of an HTML document from a file first, and then loads the file.
| |
DetectEncodingAndLoad(String, Boolean) |
Detects the encoding of an HTML document from a file first, and then loads the file.
| |
DetectEncodingHtml |
Detects the encoding of an HTML text.
| |
GetElementbyId |
Gets the HTML node with the specified 'id' attribute value.
| |
GetXmlName |
Gets a valid XML name.
| |
HtmlEncode |
Applies HTML encoding to a specified string.
| |
IsWhiteSpace |
Determines if the specified character is considered as a whitespace character.
| |
Load(Stream) |
Loads an HTML document from a stream.
| |
Load(TextReader) |
Loads the HTML document from the specified TextReader.
| |
Load(String) |
Loads an HTML document from a file.
| |
Load(Stream, Boolean) |
Loads an HTML document from a stream.
| |
Load(Stream, Encoding) |
Loads an HTML document from a stream.
| |
Load(String, Boolean) |
Loads an HTML document from a file.
| |
Load(String, Encoding) |
Loads an HTML document from a file.
| |
Load(Stream, Encoding, Boolean) |
Loads an HTML document from a stream.
| |
Load(String, Encoding, Boolean) |
Loads an HTML document from a file.
| |
Load(Stream, Encoding, Boolean, Int32) |
Loads an HTML document from a stream.
| |
Load(String, Encoding, Boolean, Int32) |
Loads an HTML document from a file.
| |
LoadHtml |
Loads the HTML document from the specified string.
| |
Save(Stream) |
Saves the HTML document to the specified stream.
| |
Save(StreamWriter) |
Saves the HTML document to the specified StreamWriter.
| |
Save(TextWriter) |
Saves the HTML document to the specified TextWriter.
| |
Save(String) |
Saves the mixed document to the specified file.
| |
Save(XmlWriter) |
Saves the HTML document to the specified XmlWriter.
| |
Save(Stream, Encoding) |
Saves the HTML document to the specified stream.
| |
Save(String, Encoding) |
Saves the mixed document to the specified file.
|
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.
|