Share via


XmlUtil.IsStartElement(XmlReader, String, ICollection<String>) Method

Definition

Determine if reader is at expected element in one of the listed namespace in namespaceList.

public static bool IsStartElement (System.Xml.XmlReader reader, string element, System.Collections.Generic.ICollection<string> namespaceList);
static member IsStartElement : System.Xml.XmlReader * string * System.Collections.Generic.ICollection<string> -> bool
Public Shared Function IsStartElement (reader As XmlReader, element As String, namespaceList As ICollection(Of String)) As Boolean

Parameters

reader
XmlReader

the XmlReaderto check.

element
String

the expected element.

namespaceList
ICollection<String>

the expected namespace list.

Returns

if reader is at expected element.

Exceptions

if element is null or empty.

Applies to