/// <internalonly /> /// <devdoc> /// <para> /// Initializes a new instance of the XPathReader class with the specified XmlNameTable. /// This constructor is used when creating reader with "new XPathReader(..)" /// </para> /// </devdoc> // // For class function provides the url, we will construct the // XmlTextReader to process the URL // public XPathReader([NotNull] string Url, string XPath) : this() { BaseReader = new XmlTextReader(Url); _XPathCollection = new XPathCollection { XPath }; }
/// <internalonly /> /// <devdoc> /// <para> /// Initializes a new instance of the XPathReader class with the specified XmlNameTable. /// This constructor is used when creating reader with "new XPathReader(..)" /// </para> /// </devdoc> // // For class function provides the url, we will construct the // XmlTextReader to process the URL // public XPathReader(TextReader Reader, string XPath) : this() { BaseReader = new XmlTextReader(Reader); _XPathCollection = new XPathCollection { XPath }; }
/// <internalonly /> /// <devdoc> /// <para> /// Initializes a new instance of the XPathReader class with the specified XmlNameTable. /// This constructor is used when creating reader with "new XPathReader(..)" /// </para> /// </devdoc> // // For class function provides the url, we will construct the // XmlTextReader to process the URL // public XPathReader([NotNull] string Url, [NotNull] XPathCollection XPathCollection) : this(new XmlTextReader(Url), XPathCollection) { }
/// <internalonly /> /// <devdoc> /// <para> /// Initializes a new instance of the XPathReader class with the specified XmlNameTable. /// This constructor is used when creating reader with "new XPathReader(..)" /// </para> /// </devdoc> public XPathReader(XmlReader Reader, [NotNull] XPathCollection XPathCollection) : this() { _XPathCollection = XPathCollection; XPathCollection.SetReader = this; BaseReader = Reader; }