System::Xml::XmlNode::SelectSingleNode メソッド

XmlNode::SelectSingleNode(const String&) method

最初の XmlNodeXPath 式に一致するものを選択します。

SharedPtr<XmlNode> System::Xml::XmlNode::SelectSingleNode(const String &xpath)
パラメーター説明
xpathconst String&この XPath 式。

ReturnValue

一致するノードが見つからない場合は nullptr を返す、XPath クエリに一致する最初の XmlNode です。

参照

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

最初の XmlNodeXPath 式に一致するものを選択します。XPath 式で見つかったプレフィックスは、提供された XmlNamespaceManager を使用して解決されます。

SharedPtr<XmlNode> System::Xml::XmlNode::SelectSingleNode(const String &xpath, const SharedPtr<XmlNamespaceManager> &nsmgr)
パラメーター説明
xpathconst String&この XPath 式。
nsmgrconst SharedPtr<XmlNamespaceManager>&XPath 式のプレフィックスの名前空間を解決するために使用する XmlNamespaceManager

ReturnValue

一致するノードが見つからない場合は nullptr を返す、XPath クエリに一致する最初の XmlNode です。

参照