Méthode System::Xml::XmlReader::ReadToNextSibling

XmlReader::ReadToNextSibling(String, String) method

Avance le XmlReader vers l’élément frère suivant avec le nom local et l’URI d’espace de noms spécifiés.

virtual bool System::Xml::XmlReader::ReadToNextSibling(String localName, String namespaceURI)
ParamètreTypeDescription
localNameStringLe nom local de l’élément frère vers lequel vous souhaitez vous déplacer.
namespaceURIStringL’URI d’espace de noms de l’élément frère vers lequel vous souhaitez vous déplacer.

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.

Voir aussi

XmlReader::ReadToNextSibling(String) method

Avance le XmlReader vers l’élément frère suivant avec le nom qualifié spécifié.

virtual bool System::Xml::XmlReader::ReadToNextSibling(String name)
ParamètreTypeDescription
nomStringLe nom qualifié de l’élément frère vers lequel vous souhaitez vous déplacer.

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.

Voir aussi