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

XmlReader::ReadToNextSibling(String, String) method

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

virtual bool System::Xml::XmlReader::ReadToNextSibling(String localName, String namespaceURI)
参数类型描述
localNameString您希望移动到的兄弟元素的本地名称。
namespaceURIString您想移动到的兄弟元素的命名空间 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)
参数类型描述
名称String您想移动到的兄弟元素的限定名称。

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.

另见