HtmlReader members

The HtmlReader class is a forward-only parser for HTML documents.

The HtmlReader type exposes the following members.

Constructors

  Name Description
Public method HtmlReader(TextReader) The HtmlReader(TextReader) constructor initializes a new instance of the HtmlReader class that reads data from the specified text reader.
Public method 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
Public property AttributeReader The AttributeReader property gets an attribute reader that will parse the attributes of an HTML tag.
Public property CurrentOffset Returns the current parsing offset from the start of the document.
Public property Depth The Depth property gets the current nesting depth of the HTML document.
Public property 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.
Public property InputEncoding The InputEncoding property gets or sets the character encoding that is used when parsing the input stream.
Public property NormalizeHtml The NormalizeHtml parameter gets or sets a value that indicates whether the HTML stream should me normalized.
Public property OverlappedDepth The OverlappedDepth property gets the depth delta associated with the OverlappedClose and OverlappedReopen tokens.
Public property TagId The TagId property gets the identifier for the current HTML tag.
Public property TagInjectedByNormalizer The TagInjectedByNormalizer property gets a value indicating whether the current tag was inserted when normalizing the HTML document.
Public property TagNameIsLong The TagNameIsLong property gets a value that indicates whether the current HTML tag is extremely long.
Public property TokenKind The TokenKind property gets the kind of token that the HtmlReader is currently processing.

Top

Methods

  Name Description
Public method Close The Close() method closes the HtmlReader instance and releases resources used by the instance.
Public method Dispose() Releases the resources used by the current instance of the HtmlReader class.
Protected method Dispose(Boolean) The Dispose(Boolean) method releases resource used by the HtmlReader instance.
Public method ReadMarkupText The ReadMarkupText([], Int32, Int32) method reads an HTML tag without parsing the internal text to HTML tokens.
Public method ReadNextToken The ReadNextToken() method advances to the next HTML token.
Public method ReadTagName() The ReadTagName() method reads an HTML tag name as a string.
Public method ReadTagName([], Int32, Int32) The ReadTagName([], Int32, Int32) method returns the HTML tag name as a series of chunks in a character array.
Public method ReadText The ReadText([], Int32, Int32) method reads the text of an HTML token.

Top

See also

Reference

HtmlReader class

Microsoft.Exchange.Data.TextConverters namespace