System.Xml.XmlReader.ReadStartElement Method

Checks that the current node is an element and advances the reader to the next node.

Syntax

public virtual void ReadStartElement ()

Exceptions

TypeReason
System.Xml.XmlExceptionThe node is not an Element node or an error occurred while parsing the XML.

Remarks

This method calls XmlReader.IsStartElement followed by XmlReader.Read to position you on the content of that element found in the input stream.

Requirements

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