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 local name and namespace URI. [Edit]

public virtual bool IsStartElement (string localName, string namespaceName)

Parameters

localName
Documentation for this section has not yet been entered. [Edit]
namespaceName
Documentation for this section has not yet been entered. [Edit]

Returns

A bool where true indicates the node is an Element node with the specified local name and namespace URI; 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 XmlReader.LocalName and XmlReader.NamespaceURI properties equal to localname and ns, respectively.

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 local name and namespace URI.

[Edit]

Requirements

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