System.Xml.XmlTextReaderImpl.XmlTextReaderImpl C# (CSharp) Method

XmlTextReaderImpl() public method

public XmlTextReaderImpl ( string url, XmlNameTable nt ) : System.IO
url string
nt XmlNameTable
return System.IO
        public XmlTextReaderImpl(string url, XmlNameTable nt) : this(nt)
        {
            if (url == null)
            {
                throw new ArgumentNullException(nameof(url));
            }
            if (url.Length == 0)
            {
                throw new ArgumentException(SR.Xml_EmptyUrl, nameof(url));
            }
            _namespaceManager = new XmlNamespaceManager(nt);

            _url = url;

            // It is important to have valid resolver here to resolve the Xml url file path. 
            // it is safe as this resolver will not be used to resolve DTD url's
            _ps.baseUri = GetTempResolver().ResolveUri(null, url);
            _ps.baseUriStr = _ps.baseUri.ToString();
            _reportedBaseUri = _ps.baseUriStr;

            _parsingFunction = ParsingFunction.OpenUrl;
        }

Same methods

XmlTextReaderImpl::XmlTextReaderImpl ( ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( Stream input ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( Stream input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( Stream xmlFragment, XmlNodeType fragType, XmlParserContext context ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( Stream stream, byte bytes, int byteCount, XmlReaderSettings settings, Uri baseUri, string baseUriStr, XmlParserContext context, bool closeInput ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( TextReader input ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( TextReader input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( TextReader input, XmlReaderSettings settings, string baseUriStr, XmlParserContext context ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( XmlResolver resolver, XmlReaderSettings settings, XmlParserContext context ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url, Stream input ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url, Stream input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url, TextReader input ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url, TextReader input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string xmlFragment, XmlNodeType fragType, XmlParserContext context ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string xmlFragment, XmlParserContext context ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string xmlFragment, XmlParserContext context, XmlReaderSettings settings ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver ) : System.IO
XmlTextReaderImpl