XmlReader.ReadToDescendant Method (String)
Reads to the first descendant of the current element with the given Name.
Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)
Syntax
public virtual bool ReadToDescendant (
stringname
)
Parameters
- name
The name of the element to move to.
Return Value
true if a matching descendant element is found; otherwise false. If a matching child element is not found, the XmlReader is positioned on the end tag (NodeType is the EndElement enumeration) of the element. If the XmlReader is not positioned on an element when ReadToDescendant was called, this method returns false and the position of the XmlReader is not changed.
Version Information
Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, and 4.1.