C# Class CsQuery.Implementation.DomDocHelper

Datei anzeigen Open project: prepare/HTML-Renderer

Public Methods

Method Description
Create ( Stream html, Encoding encoding = null, HtmlParsingMode parsingMode = HtmlParsingMode.Content, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : IDomDocument

Creates a new DomDocument (or derived) object.

Create ( string html, HtmlParsingMode parsingMode = HtmlParsingMode.Auto, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : IDomDocument

Creates a new DomDocument (or derived) object

CreateDocFragment ( string html, string context = null, DocType docType = DocType.Default ) : IDomDocument

Creates a new fragment in a given context.

Method Details

Create() public static method

Creates a new DomDocument (or derived) object.
public static Create ( Stream html, Encoding encoding = null, HtmlParsingMode parsingMode = HtmlParsingMode.Content, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : IDomDocument
html Stream /// The HTML source for the document. ///
encoding System.Text.Encoding /// (optional) the character set encoding. ///
parsingMode HtmlParsingMode /// (optional) the HTML parsing mode. ///
parsingOptions HtmlParsingOptions /// (optional) options for controlling the parsing. ///
docType DocType /// The DocType for this document. ///
return IDomDocument

Create() public static method

Creates a new DomDocument (or derived) object
public static Create ( string html, HtmlParsingMode parsingMode = HtmlParsingMode.Auto, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : IDomDocument
html string /// The HTML source for the document ///
parsingMode HtmlParsingMode /// (optional) the parsing mode. ///
parsingOptions HtmlParsingOptions /// (optional) options for controlling the parsing. ///
docType DocType /// The DocType for this document. ///
return IDomDocument

CreateDocFragment() public static method

Creates a new fragment in a given context.
public static CreateDocFragment ( string html, string context = null, DocType docType = DocType.Default ) : IDomDocument
html string /// The elements. ///
context string /// (optional) the context. If omitted, will be automatically determined. ///
docType DocType /// (optional) type of the document. ///
return IDomDocument