Esempio n. 1
0
 public HtmlNodeNavigator(Stream stream, Encoding encoding)
 {
     _doc       = new HtmlDocument();
     _nametable = new HtmlNameTable();
     _doc.Load(stream, encoding);
     Reset();
 }
Esempio n. 2
0
 public HtmlNodeNavigator(string path, bool detectEncodingFromByteOrderMarks)
 {
     _doc       = new HtmlDocument();
     _nametable = new HtmlNameTable();
     _doc.Load(path, detectEncodingFromByteOrderMarks);
     Reset();
 }
Esempio n. 3
0
 public HtmlNodeNavigator(string path)
 {
     _doc       = new HtmlDocument();
     _nametable = new HtmlNameTable();
     _doc.Load(path);
     Reset();
 }
Esempio n. 4
0
 public HtmlNodeNavigator(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
 {
     _doc       = new HtmlDocument();
     _nametable = new HtmlNameTable();
     _doc.Load(path, encoding, detectEncodingFromByteOrderMarks, buffersize);
     Reset();
 }
Esempio n. 5
0
 public HtmlNodeNavigator(TextReader reader)
 {
     _doc       = new HtmlDocument();
     _nametable = new HtmlNameTable();
     _doc.Load(reader);
     Reset();
 }
Esempio n. 6
0
 public HtmlNodeNavigator(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks)
 {
     _doc       = new HtmlDocument();
     _nametable = new HtmlNameTable();
     _doc.Load(stream, encoding, detectEncodingFromByteOrderMarks);
     Reset();
 }
Esempio n. 7
0
        internal HtmlNodeNavigator(HtmlDocument doc, HtmlNode currentNode)
        {
            if (currentNode == null)
            {
                throw new ArgumentNullException("currentNode");
            }

            if (currentNode.OwnerDocument != doc)
            {
                throw new ArgumentException(HtmlDocument.HtmlExceptionRefNotChild);
            }

            if (doc == null)
            {
                // keep in message, currentNode.OwnerDocument also null.
                throw new Exception("Oops! The HtmlDocument cannot be null.");
            }

#if TRACE_NAVIGATOR
            InternalTrace(null);
#endif

            _doc       = doc;
            _nametable = new HtmlNameTable();
            Reset();
            _currentnode = currentNode;
        }
Esempio n. 8
0
 private HtmlNodeNavigator(HtmlNodeNavigator nav)
 {
     if (nav == null)
     {
         throw new ArgumentNullException(nameof(nav));
     }
     this._doc         = nav._doc;
     this._currentnode = nav._currentnode;
     this._attindex    = nav._attindex;
     this._nametable   = nav._nametable;
 }
Esempio n. 9
0
        private HtmlNodeNavigator(HtmlNodeNavigator nav)
        {
            if (nav == null)
            {
                throw new ArgumentNullException("nav");
            }
            InternalTrace(null);

            _doc         = nav._doc;
            _currentnode = nav._currentnode;
            _attindex    = nav._attindex;
            _nametable   = nav._nametable; // REVIEW: should we do this?
        }
Esempio n. 10
0
 private HtmlNodeNavigator(HtmlNodeNavigator nav)
 {
     _doc       = new HtmlDocument();
     _nametable = new HtmlNameTable();
     if (nav == null)
     {
         throw new ArgumentNullException("nav");
     }
     _doc         = nav._doc;
     _currentnode = nav._currentnode;
     _attindex    = nav._attindex;
     _nametable   = nav._nametable;
 }
Esempio n. 11
0
 internal HtmlNodeNavigator(HtmlDocument doc, HtmlNode currentNode)
 {
     _doc       = new HtmlDocument();
     _nametable = new HtmlNameTable();
     if (currentNode == null)
     {
         throw new ArgumentNullException("currentNode");
     }
     if (currentNode.OwnerDocument != doc)
     {
         throw new ArgumentException(HtmlDocument.HtmlExceptionRefNotChild);
     }
     _doc = doc;
     Reset();
     _currentnode = currentNode;
 }
Esempio n. 12
0
 internal HtmlNodeNavigator()
 {
     _doc       = new HtmlDocument();
     _nametable = new HtmlNameTable();
     Reset();
 }
Esempio n. 13
-1
        private HtmlNodeNavigator(HtmlNodeNavigator nav)
        {
            if (nav == null)
            {
                throw new ArgumentNullException("nav");
            }
            InternalTrace(null);

            _doc = nav._doc;
            _currentnode = nav._currentnode;
            _attindex = nav._attindex;
            _nametable = nav._nametable; // REVIEW: should we do this?
        }