Метод System::Xml::XmlReader::ReadToDescendant

XmlReader::ReadToDescendant(String, String) method

Перемещает XmlReader к следующему дочернему элементу с указанным локальным именем и URI пространства имён.

virtual bool System::Xml::XmlReader::ReadToDescendant(String localName, String namespaceURI)
ПараметрТипОписание
localNameStringЛокальное имя элемента, к которому вы хотите переместиться.
namespaceURIStringURI пространства имён элемента, к которому вы хотите переместиться.

ReturnValue

true if a matching descendant element is found; otherwise false. If a matching child element is not found, the XmlReader is positioned on the end tag (XmlReader::get_NodeType value is XmlNodeType::EndElement) of the element. If the XmlReader is not positioned on an element when XmlReader::ReadToDescendant(String,String) was called, this method returns false and the position of the XmlReader is not changed.

См. также

XmlReader::ReadToDescendant(String) method

Перемещает XmlReader к следующему дочернему элементу с указанным квалифицированным именем.

virtual bool System::Xml::XmlReader::ReadToDescendant(String name)
ПараметрТипОписание
имяStringКвалифицированное имя элемента, к которому вы хотите переместиться.

ReturnValue

true if a matching descendant element is found; otherwise false. If a matching child element is not found, the XmlReader is positioned on the end tag (XmlReader::get_NodeType value is XmlNodeType::EndElement) of the element. If the XmlReader is not positioned on an element when XmlReader::ReadToDescendant(String) was called, this method returns false and the position of the XmlReader is not changed.

См. также