System::Xml::XmlReader::ReadToDescendant método

XmlReader::ReadToDescendant(String, String) method

Avanza el XmlReader al siguiente elemento descendiente con el nombre local y el URI del espacio de nombres especificados.

virtual bool System::Xml::XmlReader::ReadToDescendant(String localName, String namespaceURI)
ParámetroTipoDescripción
localNameStringEl nombre local del elemento al que deseas moverte.
namespaceURIStringEl URI del espacio de nombres del elemento al que deseas moverte.

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.

Ver también

XmlReader::ReadToDescendant(String) method

Avanza el XmlReader al siguiente elemento descendiente con el nombre calificado especificado.

virtual bool System::Xml::XmlReader::ReadToDescendant(String name)
ParámetroTipoDescripción
nameStringEl nombre calificado del elemento al que deseas moverte.

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.

Ver también