HtmlReader members
The HtmlReader class is a forward-only parser for HTML documents.
The HtmlReader type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HtmlReader(TextReader) | The HtmlReader(TextReader) constructor initializes a new instance of the HtmlReader class that reads data from the specified text reader. | |
HtmlReader(Stream, Encoding) | The HtmlReader(Stream, Encoding) constructor initializes a new instance of the HtmlReader class that reads data from the specified data stream using the specified encoding. |
Top
Properties
Name | Description | |
---|---|---|
AttributeReader | The AttributeReader property gets an attribute reader that will parse the attributes of an HTML tag. | |
CurrentOffset | Returns the current parsing offset from the start of the document. | |
Depth | The Depth property gets the current nesting depth of the HTML document. | |
DetectEncodingFromByteOrderMark | The DetectEncodingFromByteOrderMark property gets or sets a value that indicates whether the byte order mark in the HTML document is used to select the input code page. | |
InputEncoding | The InputEncoding property gets or sets the character encoding that is used when parsing the input stream. | |
NormalizeHtml | The NormalizeHtml parameter gets or sets a value that indicates whether the HTML stream should me normalized. | |
OverlappedDepth | The OverlappedDepth property gets the depth delta associated with the OverlappedClose and OverlappedReopen tokens. | |
TagId | The TagId property gets the identifier for the current HTML tag. | |
TagInjectedByNormalizer | The TagInjectedByNormalizer property gets a value indicating whether the current tag was inserted when normalizing the HTML document. | |
TagNameIsLong | The TagNameIsLong property gets a value that indicates whether the current HTML tag is extremely long. | |
TokenKind | The TokenKind property gets the kind of token that the HtmlReader is currently processing. |
Top
Methods
Name | Description | |
---|---|---|
Close | The Close() method closes the HtmlReader instance and releases resources used by the instance. | |
Dispose() | Releases the resources used by the current instance of the HtmlReader class. | |
Dispose(Boolean) | The Dispose(Boolean) method releases resource used by the HtmlReader instance. | |
ReadMarkupText | The ReadMarkupText([], Int32, Int32) method reads an HTML tag without parsing the internal text to HTML tokens. | |
ReadNextToken | The ReadNextToken() method advances to the next HTML token. | |
ReadTagName() | The ReadTagName() method reads an HTML tag name as a string. | |
ReadTagName([], Int32, Int32) | The ReadTagName([], Int32, Int32) method returns the HTML tag name as a series of chunks in a character array. | |
ReadText | The ReadText([], Int32, Int32) method reads the text of an HTML token. |
Top