Mono Class Library: System.Xml.XmlReader Overview | Members

System.Xml.XmlReader.IsStartElement Method

Determines if a node containing content is an Element node with the specified qualified name. [Edit]

public virtual bool IsStartElement (string name)

Parameters

name
A string specifying the qualified name of an element. [Edit]

Returns

A bool where true indicates the node is an Element node with the specified name; false otherwise. [Edit]

Exceptions

TypeReason
System.Xml.XmlExceptionAn error occurred while parsing the XML. [Edit]

Remarks

Operation
As described above.

This method calls the XmlReader.MoveToContent method, which determines whether the current node can contain content and, if not, moves the reader to the next content node or the end of the input stream. When the reader is positioned on a content node, the node is checked to determine if it is an Element node with a XmlReader.Name property equal to name.

Note to Inheritors
Override this method to customize the behavior of this method in types derived from the System.Xml.XmlReader class.

Usage
Use this method to determine whether the node returned by the XmlReader.MoveToContent method is an Element node with the specified name.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0