IsStartElement Method (String)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Calls MoveToContent and tests 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.

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

public virtual bool IsStartElement(
	string name
)

Parameters

name
Type: System..::..String
The string matched against the Name property of the element found.

Return Value

Type: System..::..Boolean
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.

This method skips white space, comments, and processing instructions until the reader is positioned on a content node. The method then tests if the current node is an element.

Show: