Export (0) Print
Expand All

XmlReader.Create Method

Creates a new XmlReader instance.

Name Description
XmlReader.Create (Stream) Creates a new XmlReader instance using the specified stream.

Supported by the .NET Compact Framework.

XmlReader.Create (String) Creates a new XmlReader instance with specified URI.

Supported by the .NET Compact Framework.

XmlReader.Create (TextReader) Creates a new XmlReader instance with the specified TextReader.

Supported by the .NET Compact Framework.

XmlReader.Create (Stream, XmlReaderSettings) Creates a new XmlReader instance with the specified stream and XmlReaderSettings object.

Supported by the .NET Compact Framework.

XmlReader.Create (String, XmlReaderSettings) Creates a new instance with the specified URI and XmlReaderSettings.

Supported by the .NET Compact Framework.

XmlReader.Create (TextReader, XmlReaderSettings) Creates a new XmlReader instance using the specified TextReader and XmlReaderSettings objects.

Supported by the .NET Compact Framework.

XmlReader.Create (XmlReader, XmlReaderSettings) Creates a new XmlReader instance with the specified XmlReader and XmlReaderSettings objects.

Supported by the .NET Compact Framework.

XmlReader.Create (Stream, XmlReaderSettings, String) Creates a new XmlReader instance using the specified stream, base URI, and XmlReaderSettings object.

Supported by the .NET Compact Framework.

XmlReader.Create (Stream, XmlReaderSettings, XmlParserContext) Creates a new XmlReader instance using the specified stream, XmlReaderSettings, and XmlParserContext objects.

Supported by the .NET Compact Framework.

XmlReader.Create (String, XmlReaderSettings, XmlParserContext) Creates a new XmlReader instance using the specified URI, XmlReaderSettings, and XmlParserContext objects.

Supported by the .NET Compact Framework.

XmlReader.Create (TextReader, XmlReaderSettings, String) Creates a new XmlReader instance using the specified TextReader, XmlReaderSettings, and base URI.

Supported by the .NET Compact Framework.

XmlReader.Create (TextReader, XmlReaderSettings, XmlParserContext) Creates a new XmlReader instance using the specified TextReader, XmlReaderSettings, and XmlParserContext objects.

Supported by the .NET Compact Framework.

Although Microsoft .NET Framework includes concrete implementations of the XmlReader class, such as the XmlTextReader, XmlNodeReader, and the XmlValidatingReader classes, in the 2.0 release the recommended practice is to create XmlReader instances using the Create method. For more information, see Creating XML Readers.

Security noteSecurity Note:

By default the XmlReader uses an XmlUrlResolver object with no user credentials to open resources. This means that, by default, the XmlReader can access any locations that do not require credentials. 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.

-or-

Do not allow the XmlReader to open any external resources by setting the XmlResolver property to a null reference (Nothing in Visual Basic).

Community Additions

ADD
Show:
© 2014 Microsoft