Creates a new System.Xml.XmlReader instance with the specified System.IO.TextReader.
- input
- The System.IO.TextReader from which to read the XML data. Because a System.IO.TextReader returns a stream of Unicode characters, the encoding specified in the XML declaration is not used by the System.Xml.XmlReader to decode the data stream.
An System.Xml.XmlReader object to read the XML data.
An System.Xml.XmlReaderSettings object with default settings is used to create the reader. If you wish to specify the features to support on the created reader, use the overload that takes an System.Xml.XmlReaderSettings object as one of its arguments, and pass in an System.Xml.XmlReaderSettings object with the correct settings.
A default System.Xml.XmlUrlResolver with no credentials is used to access any external resources such as a document type definition (DTD), entities, schemas, and so on. If the external resource is located on a network resource that requires authentication, specify an System.Xml.XmlResolver with the necessary credentials using the XmlReaderSettings.XmlResolver property.
The created System.Xml.XmlReader object expands entity references and performs XML normalization of new line characters.