Esempio n. 1
0
        /// <summary>
        /// Does the zoning
        /// </summary>
        /// <param name="output">The serialized DOM</param>
        /// <returns>the zone tree</returns>
        internal ZoneTree DoZoning(SerializationOutput output)
        {
            var dom = _htmlDocumentSerializer.Deserialize(output.DomHtml, output.DomText, output.DomTreeXml, output.DisplayHtml);

            _elementClassifier.Execute(dom);
            return(_zoneTreeBuilder.Build(dom));
        }
Esempio n. 2
0
        public ZoneTree DoZoning()
        {
            this.ApplyDomModifications();
            var    msdocument = _documentFactory.Create(_msDoc, _url);
            string html, text;
            var    sDocument = SerializableDocument.Create(msdocument, out html, out text);

            _elementClassifier.Execute(sDocument);
            var zoneTree = _zoneTreeBuilder.Build(sDocument);

            return(zoneTree);
        }