Пример #1
0
 public HtmlNodeNavigator(TextReader reader)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(reader);
     this.Reset();
 }
Пример #2
0
 public HtmlNodeNavigator(Stream stream)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(stream);
     this.Reset();
 }
Пример #3
0
 private HtmlNodeNavigator(HtmlNodeNavigator nav)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     if (nav == null)
     {
         throw new ArgumentNullException("nav");
     }
     this.InternalTrace(null);
     this._doc         = nav._doc;
     this._currentnode = nav._currentnode;
     this._attindex    = nav._attindex;
     this._nametable   = nav._nametable;
 }
Пример #4
0
 internal HtmlNodeNavigator(HtmlDocument doc, HtmlNode currentNode)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     if (currentNode == null)
     {
         throw new ArgumentNullException("currentNode");
     }
     if (currentNode.OwnerDocument != doc)
     {
         throw new ArgumentException(HtmlDocument.HtmlExceptionRefNotChild);
     }
     this.InternalTrace(null);
     this._doc = doc;
     this.Reset();
     this._currentnode = currentNode;
 }
Пример #5
0
 internal HtmlNodeNavigator()
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this.Reset();
 }