Exemplo n.º 1
0
 public HtmlNodeNavigator(Stream stream, Encoding encoding)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(stream, encoding);
     this.Reset();
 }
Exemplo n.º 2
0
 public HtmlNodeNavigator(string path, bool detectEncodingFromByteOrderMarks)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(path, detectEncodingFromByteOrderMarks);
     this.Reset();
 }
Exemplo n.º 3
0
 public HtmlNodeNavigator(string path)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(path);
     this.Reset();
 }
Exemplo n.º 4
0
 public HtmlNodeNavigator(TextReader reader)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(reader);
     this.Reset();
 }
Exemplo n.º 5
0
 public HtmlNodeNavigator(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(path, encoding, detectEncodingFromByteOrderMarks, buffersize);
     this.Reset();
 }
Exemplo n.º 6
0
 public HtmlNodeNavigator(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(stream, encoding, detectEncodingFromByteOrderMarks);
     this.Reset();
 }
Exemplo n.º 7
0
 private HtmlNodeNavigator(HtmlNodeNavigator nav)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     if (nav == null)
     {
         throw new ArgumentNullException("nav");
     }
     this._doc         = nav._doc;
     this._currentnode = nav._currentnode;
     this._attindex    = nav._attindex;
     this._nametable   = nav._nametable;
 }
Exemplo n.º 8
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("Reference node must be a child of this node");
     }
     this._doc = doc;
     this.Reset();
     this._currentnode = currentNode;
 }
Exemplo n.º 9
0
 // Methods
 internal HtmlNodeNavigator()
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this.Reset();
 }