Share via


XmlReader.ReadStartElement Method (String, String)

Checks to find whether the current content node is an element with the given LocalName and NamespaceURI and advances the reader to the next node.

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

Syntax

public virtual void ReadStartElement (
         stringlocalname,
         stringns
)

Parameters

Exceptions

Exception type Condition
XmlException IsStartElement returns false, or the LocalName and NamespaceURI properties of the element found do not match the given arguments.

Version Information

Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

XmlReader Class
XmlReader Members
System.Xml Namespace