Share via


XmlUtil.CreateXmlReader Method

Definition

Overloads

CreateXmlReader(Stream)

Creates an XmlReader object with secure default property values.

CreateXmlReader(String)

Creates an XmlReader object with secure default property values.

CreateXmlReader(String, Boolean)

Creates an XmlReader object with secure default property values and given whitespace setting.

CreateXmlReader(Stream)

Creates an XmlReader object with secure default property values.

public static System.Xml.XmlReader CreateXmlReader (System.IO.Stream xmlStream);
static member CreateXmlReader : System.IO.Stream -> System.Xml.XmlReader
Public Shared Function CreateXmlReader (xmlStream As Stream) As XmlReader

Parameters

xmlStream
Stream

Xml stream.

Returns

The new XmlReader object.

Applies to

CreateXmlReader(String)

Creates an XmlReader object with secure default property values.

public static System.Xml.XmlReader CreateXmlReader (string xml);
static member CreateXmlReader : string -> System.Xml.XmlReader
Public Shared Function CreateXmlReader (xml As String) As XmlReader

Parameters

xml
String

The string to get the data from.

Returns

the new XmlReader object

Applies to

CreateXmlReader(String, Boolean)

Creates an XmlReader object with secure default property values and given whitespace setting.

public static System.Xml.XmlReader CreateXmlReader (string xml, bool preserveWhiteSpace);
static member CreateXmlReader : string * bool -> System.Xml.XmlReader
Public Shared Function CreateXmlReader (xml As String, preserveWhiteSpace As Boolean) As XmlReader

Parameters

xml
String

The string to get the data from.

preserveWhiteSpace
Boolean

Whether the whitespaces are to be preserved or not.

Returns

the new XmlReader object

Applies to