public HtmlNodeNavigator(Stream stream, Encoding encoding) { _doc = new HtmlDocument(); _nametable = new HtmlNameTable(); _doc.Load(stream, encoding); Reset(); }
public HtmlNodeNavigator(string path, bool detectEncodingFromByteOrderMarks) { _doc = new HtmlDocument(); _nametable = new HtmlNameTable(); _doc.Load(path, detectEncodingFromByteOrderMarks); Reset(); }
public HtmlNodeNavigator(string path) { _doc = new HtmlDocument(); _nametable = new HtmlNameTable(); _doc.Load(path); Reset(); }
public HtmlNodeNavigator(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize) { _doc = new HtmlDocument(); _nametable = new HtmlNameTable(); _doc.Load(path, encoding, detectEncodingFromByteOrderMarks, buffersize); Reset(); }
public HtmlNodeNavigator(TextReader reader) { _doc = new HtmlDocument(); _nametable = new HtmlNameTable(); _doc.Load(reader); Reset(); }
public HtmlNodeNavigator(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks) { _doc = new HtmlDocument(); _nametable = new HtmlNameTable(); _doc.Load(stream, encoding, detectEncodingFromByteOrderMarks); Reset(); }
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; }
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; }
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? }
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; }
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; }
internal HtmlNodeNavigator() { _doc = new HtmlDocument(); _nametable = new HtmlNameTable(); Reset(); }