CreateNewDocument() protected method

Bind this instance to a new empty DomDocument configured with the default options.
protected CreateNewDocument ( ) : void
return void
Ejemplo n.º 1
0
        /// <summary>
        /// Creeate a new DOM from HTML text using full HTML5 tag generation.
        /// </summary>
        ///
        /// <param name="html">
        /// A character array containing HTML
        /// </param>
        ///
        /// <returns>
        /// The new document.
        /// </returns>

        public static CQ CreateDocument(char[] html)
        {
            CQ csq = new CQ();

            csq.CreateNewDocument(html, HtmlParsingMode.Document);

            return(csq);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creeate a new DOM from HTML text using full HTML5 tag generation.
        /// </summary>
        ///
        /// <param name="html">
        /// A character array containing HTML
        /// </param>
        ///
        /// <returns>
        /// The new document.
        /// </returns>

        public static CQ CreateDocument(char[] html)
        {
            CQ csq = new CQ();
            csq.CreateNewDocument(html, HtmlParsingMode.Document);
            
            return csq;
        }