Share via


XmlReader.IsStartElement Method (String)

Calls the MoveToContent method to test node tags and one property, the Name property.

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

Syntax

public virtual bool IsStartElement (
         stringname
)

Parameters

  • name
    The string matched against the Name property of the element found.

Return Value

true if the resulting node is an element and the Name property matches the specified string. false if a node type other than XmlNodeType.Element was found or if the element Name property does not match the specified string.

Remarks

Calls the MoveToContent method and tests to find out if the current content node is a start tag or empty element tag and if the Name property of the element found matches the given argument.

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