XmlReader.ReadToNextSibling Method (String, String)
Reads to the next sibling of the current element with the given LocalName and NamespaceURI.
Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)
Syntax
public virtual bool ReadToNextSibling (
stringlocalName,
stringnamespaceURI
)
Parameters
- localName
The local name of the sibling element you wish to move to. - namespaceURI
The namespace URI of the sibling element you wish to move to
Return Value
true if a matching sibling element is found; otherwise false. If a matching sibling element is not found, the XmlReader is positioned on the end tag (NodeType is the EndElement enumeration) of the parent element.
Version Information
Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, and 4.1.