XmlValidatingReader.MoveToElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Moves to the element that contains the current attribute node.
public:
override bool MoveToElement();
public override bool MoveToElement();
override this.MoveToElement : unit -> bool
Public Overrides Function MoveToElement () As Boolean
Returns
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).
Remarks
Note
The XmlValidatingReader class is obsolete in .NET Framework 2.0. You can create a validating XmlReader instance by using the XmlReaderSettings class and the Create method. For more information, see the Remarks section of the XmlReader reference page.
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
.