Share via


XmlReader.ReadStartElement Method (String)

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

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

Syntax

public virtual void ReadStartElement (
         stringname
)

Parameters

  • name
    The qualified Name of the element.

Exceptions

Exception type Condition
XmlException IsStartElement returns false, or the Name property of the element found does 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