Moves to the element that owns the current attribute node. After navigating through the attributes on an element, use this method to move the reader back to the element.

HRESULT MoveToElement ();  

Returns S_OK if no error is generated.

This method behaves the same way for attributes of elements within the document itself, attributes of an XmlNodeType_XmlDeclaration, and attributes of an XmlNodeType_DocumentType declaration.

Header: XmlLite.h

Library: XmlLite.lib

IXmlReader Methods