コード例 #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();
 }