Share via


Create Method (Stream)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a new XmlReader instance using the specified stream.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

Syntax

'Declaration
Public Shared Function Create ( _
    input As Stream _
) As XmlReader
public static XmlReader Create(
    Stream input
)
public:
static XmlReader^ Create(
    Stream^ input
)
static member Create : 
        input:Stream -> XmlReader 
public static function Create(
    input : Stream
) : XmlReader

Parameters

  • input
    Type: System.IO. . :: . .Stream
    The stream containing the XML data.
    The XmlReader scans the first bytes of the stream looking for a byte order mark or other sign of encoding. When encoding is determined, the encoding is used to continue reading the stream, and processing continues parsing the input as a stream of (Unicode) characters.

Return Value

Type: System.Xml. . :: . .XmlReader
An XmlReader object used to read the data contained in the stream.

Remarks

An 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 XmlReaderSettings object as one of its arguments, and pass in an XmlReaderSettings object with the correct settings.

The created XmlReader object expands entity references and performs XML normalization of new line characters.

.NET Framework Security

See Also

Reference

XmlReader Class

Create Overload

System.Xml Namespace