Share via


IsStartElement Method

[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.

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

Syntax

'Declaration
Public Overridable Function IsStartElement As Boolean
public virtual bool IsStartElement()
public:
virtual bool IsStartElement()
abstract IsStartElement : unit -> bool 
override IsStartElement : unit -> bool 
public function IsStartElement() : boolean

Return Value

Type: System. . :: . .Boolean
true if MoveToContent finds a start tag or empty element tag; false if a node type other than XmlNodeType.Element was found.

Remarks

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.

.NET Framework Security

See Also

Reference

XmlReader Class

IsStartElement Overload

System.Xml Namespace