System::Xml::XmlReader::ReadToNextSibling method

XmlReader::ReadToNextSibling(String) method

Advances the XmlReader to the next sibling element with the specified qualified name.

virtual bool System::Xml::XmlReader::ReadToNextSibling(String name)
ParameterTypeDescription
nameStringThe qualified name of the sibling element you wish to move to.

ReturnValue

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 (XmlReader::get_NodeType value is XmlNodeType::EndElement) of the parent element.

See Also

XmlReader::ReadToNextSibling(String, String) method

Advances the XmlReader to the next sibling element with the specified local name and namespace URI.

virtual bool System::Xml::XmlReader::ReadToNextSibling(String localName, String namespaceURI)
ParameterTypeDescription
localNameStringThe local name of the sibling element you wish to move to.
namespaceURIStringThe namespace URI of the sibling element you wish to move to.

ReturnValue

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 (XmlReader::get_NodeType value is XmlNodeType::EndElement) of the parent element.

See Also