MoveToElement Method

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

When overridden in a derived class, moves to the element that contains the current attribute node.

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

public virtual bool MoveToElement()

Return Value

Type: System..::..Boolean
true if the reader is positioned on an attribute (the reader moves to the element that owns the attribute); false if the reader is not positioned on an attribute (the position of the reader does not change).

Use this method to return to an element after navigating through its attributes. This method moves the reader to one of the following node types: Element, DocumentType, or XmlDeclaration.

Show: