ReadToNextSibling()

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)

Arguments

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

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)

Arguments

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.

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

See Also