System::Xml::XmlNode::SelectSingleNode méthode

XmlNode::SelectSingleNode(const String&) method

Sélectionne le premier XmlNode qui correspond à l’expression XPath.

SharedPtr<XmlNode> System::Xml::XmlNode::SelectSingleNode(const String &xpath)
ParamètreTypeDescription
xpathconst String&L’expression XPath.

ReturnValue

Le premier XmlNode qui correspond à la requête XPath ou nullptr si aucun nœud correspondant n’est trouvé.

Voir aussi

XmlNode::SelectSingleNode(const String&, const SharedPtr<XmlNamespaceManager>&) method

Sélectionne le premier XmlNode qui correspond à l’expression XPath. Tous les préfixes trouvés dans l’expression XPath sont résolus à l’aide du XmlNamespaceManager fourni.

SharedPtr<XmlNode> System::Xml::XmlNode::SelectSingleNode(const String &xpath, const SharedPtr<XmlNamespaceManager> &nsmgr)
ParamètreTypeDescription
xpathconst String&L’expression XPath.
nsmgrconst SharedPtr<XmlNamespaceManager>&Un XmlNamespaceManager à utiliser pour résoudre les espaces de noms des préfixes dans l’expression XPath.

ReturnValue

Le premier XmlNode qui correspond à la requête XPath ou nullptr si aucun nœud correspondant n’est trouvé.

Voir aussi