System::Xml::XmlReader::ReadToNextSibling 方法

XmlReader::ReadToNextSibling(String, String) method

XmlReader 前进到具有指定本地名称和命名空间 URI 的下一个兄弟元素。

virtual bool System::Xml::XmlReader::ReadToNextSibling(String localName, String namespaceURI)
ParameterType描述
localName字符串您希望移动到的兄弟元素的本地名称。
namespaceURI字符串您希望移动到的兄弟元素的命名空间 URI。

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.

另见

XmlReader::ReadToNextSibling(String) method

XmlReader 前进到具有指定限定名称的下一个兄弟元素。

virtual bool System::Xml::XmlReader::ReadToNextSibling(String name)
ParameterType描述
name字符串您希望移动到的兄弟元素的限定名称。

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.

另见