XmlReader.Create Method (XmlReader, XmlReaderSettings)
Assembly: System.Xml (in system.xml.dll)
public static function Create ( reader : XmlReader, settings : XmlReaderSettings ) : XmlReader
The XmlReader object that you wish to use as the underlying reader.
The XmlReaderSettings object used to configure the new XmlReader instance.
The conformance level of the XmlReaderSettings object must either match the conformance level of the underlying reader, or it must be set to Auto.
Return ValueAn XmlReader object that is wrapped around the specified XmlReader object.
The reader value is a null reference (Nothing in Visual Basic).
If the XmlReaderSettings object specifies a conformance level that is not consistent with conformance level of the underlying reader.
This method allows you add additional features to an underlying XmlReader object. The underlying XmlReader object can be another XmlReader object created by the Create method, or an XmlReader object created using one of the concrete XmlReader implementations.
A default XmlUrlResolver with no credentials is used to access any external resources such as a schema. If the external resource is located on a network resource that requires authentication, specify an XmlResolver with the necessary credentials using the XmlReaderSettings.XmlResolver property.
You can use one of the following methods to control which resources the XmlReader can access:
Restrict the resources that the XmlReader can access by setting the XmlResolver property to an XmlSecureResolver object.
Do not allow the XmlReader to open any external resources by setting the XmlResolver property to a null reference (Nothing in Visual Basic).
The created XmlReader object expands entity references and performs XML normalization of new line characters.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.