{"Entry":{"collection":"func","key":"xpath","name":"xpath","aliases":[],"metadata":{"changed_in":["9.1"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.3"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.0","group_changed":null,"signatures":{"added":["xpath(xpath, xml [, nsarray])"],"removed":["xpath(xpath, xml[, nsarray])"]},"status":"changed","to":"9.1"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.1","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.2"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.6","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"10"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"c5ebda41b87da6595d56fb43b7eb19ee745ecffe8c0905aa4f5d0fc78a1cf5dd","first_version":"8.3","group":"xml","group_label":"Xml Functions","groups":["xml"],"imported_at":"2026-09-27T17:57:28.810696+08:00","last_version":"20","name":"xpath","name_key":"xpath","position":15027,"present_in":["8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"xpath ( xpath text, xml xml [, nsarray text[]] ) → xml[]","signature_count":1,"slug":"xpath","source_rev":"b7bd9cda","summary":"The function xpath evaluates the XPath 1.0 expression xpath (given as text) against the XML value xml.","summary_zh":""}},"Definition":{"Collection":"func","Key":"xpath","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"xpath","SourceRevision":"b7bd9cda","Facts":{"description":"The function xpath evaluates the XPath 1.0 expression xpath (given as text) against the XML value xml. It returns an array of XML values corresponding to the node-set produced by the XPath expression. If the XPath expression returns a scalar value rather than a node-set, a single-element array is returned.","description_html":"The function \u003ccode class=\"function\"\u003expath\u003c/code\u003e evaluates the XPath 1.0 expression \u003cem class=\"parameter\"\u003e\u003ccode\u003expath\u003c/code\u003e\u003c/em\u003e (given as text) against the XML value \u003cem class=\"parameter\"\u003e\u003ccode\u003exml\u003c/code\u003e\u003c/em\u003e. It returns an array of XML values corresponding to the node-set produced by the XPath expression. If the XPath expression returns a scalar value rather than a node-set, a single-element array is returned.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-XML-PROCESSING-XPATH","file":"functions-xml.html","slug":"18"},"group":"xml","group_label":"Xml Functions","lang":"en","layout":"table-new","pages":["functions-xml.html"],"prose_only":false,"signatures":[{"description":"The function xpath evaluates the XPath 1.0 expression xpath (given as text) against the XML value xml. It returns an array of XML values corresponding to the node-set produced by the XPath expression. If the XPath expression returns a scalar value rather than a node-set, a single-element array is returned.","description_html":"The function \u003ccode class=\"function\"\u003expath\u003c/code\u003e evaluates the XPath 1.0 expression \u003cem class=\"parameter\"\u003e\u003ccode\u003expath\u003c/code\u003e\u003c/em\u003e (given as text) against the XML value \u003cem class=\"parameter\"\u003e\u003ccode\u003exml\u003c/code\u003e\u003c/em\u003e. It returns an array of XML values corresponding to the node-set produced by the XPath expression. If the XPath expression returns a scalar value rather than a node-set, a single-element array is returned.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003expath\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003expath\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003exml\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003exml\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003ensarray\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext[]\u003c/code\u003e\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003exml[]\u003c/code\u003e","returns":"xml[]","text":"xpath ( xpath text, xml xml [, nsarray text[]] ) → xml[]","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-XML-PROCESSING-XPATH","file":"functions-xml.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"xpath","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"xpath","Summary":"函数xpath根据 XML 值xml计算 XPath 1.0 表达式xpath（以文本形式给出）。它返回一个 XML 值的数组，该数组对应于该 XPath 表达式产生的节点集合。如果该 XPath 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。","BodyHTML":"函数\u003ccode\u003expath\u003c/code\u003e根据 XML 值\u003cem\u003e\u003ccode\u003exml\u003c/code\u003e\u003c/em\u003e计算 XPath 1.0 表达式\u003cem\u003e\u003ccode\u003expath\u003c/code\u003e\u003c/em\u003e（以文本形式给出）。它返回一个 XML 值的数组，该数组对应于该 XPath 表达式产生的节点集合。如果该 XPath 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。\u003cpre\u003expath ( xpath text, xml xml [, nsarray text[]] ) → xml[]\u003c/pre\u003e函数\u003ccode\u003expath\u003c/code\u003e根据 XML 值\u003cem\u003e\u003ccode\u003exml\u003c/code\u003e\u003c/em\u003e计算 XPath 1.0 表达式\u003cem\u003e\u003ccode\u003expath\u003c/code\u003e\u003c/em\u003e（以文本形式给出）。它返回一个 XML 值的数组，该数组对应于该 XPath 表达式产生的节点集合。如果该 XPath 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。","SourceRevision":"ca936764","ContentHash":"beea5a3693d49afd2c122984f1af34b6d2d20818fc1aa0d33230bd0ac416f798","Payload":{"description_zh":"函数xpath根据 XML 值xml计算 XPath 1.0 表达式xpath（以文本形式给出）。它返回一个 XML 值的数组，该数组对应于该 XPath 表达式产生的节点集合。如果该 XPath 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。","description_zh_html":"函数\u003ccode class=\"function\"\u003expath\u003c/code\u003e根据 XML 值\u003cem class=\"parameter\"\u003e\u003ccode\u003exml\u003c/code\u003e\u003c/em\u003e计算 XPath 1.0 表达式\u003cem class=\"parameter\"\u003e\u003ccode\u003expath\u003c/code\u003e\u003c/em\u003e（以文本形式给出）。它返回一个 XML 值的数组，该数组对应于该 XPath 表达式产生的节点集合。如果该 XPath 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。","signatures":[{"description_zh":"函数xpath根据 XML 值xml计算 XPath 1.0 表达式xpath（以文本形式给出）。它返回一个 XML 值的数组，该数组对应于该 XPath 表达式产生的节点集合。如果该 XPath 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。","description_zh_html":"函数\u003ccode class=\"function\"\u003expath\u003c/code\u003e根据 XML 值\u003cem class=\"parameter\"\u003e\u003ccode\u003exml\u003c/code\u003e\u003c/em\u003e计算 XPath 1.0 表达式\u003cem class=\"parameter\"\u003e\u003ccode\u003expath\u003c/code\u003e\u003c/em\u003e（以文本形式给出）。它返回一个 XML 值的数组，该数组对应于该 XPath 表达式产生的节点集合。如果该 XPath 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。","returns":"xml[]","text":"xpath ( xpath text, xml xml [, nsarray text[]] ) → xml[]","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"3559cd38b0983e687543e656e93cc01868f060d2ca99795bcc95aeab0b90c22c","Text":"xpath ( xpath text, xml xml [, nsarray text[]] ) → xml[]","Returns":"xml[]","Payload":{"description":"The function xpath evaluates the XPath 1.0 expression xpath (given as text) against the XML value xml. It returns an array of XML values corresponding to the node-set produced by the XPath expression. If the XPath expression returns a scalar value rather than a node-set, a single-element array is returned.","description_html":"The function \u003ccode class=\"function\"\u003expath\u003c/code\u003e evaluates the XPath 1.0 expression \u003cem class=\"parameter\"\u003e\u003ccode\u003expath\u003c/code\u003e\u003c/em\u003e (given as text) against the XML value \u003cem class=\"parameter\"\u003e\u003ccode\u003exml\u003c/code\u003e\u003c/em\u003e. It returns an array of XML values corresponding to the node-set produced by the XPath expression. If the XPath expression returns a scalar value rather than a node-set, a single-element array is returned.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003expath\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003expath\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003exml\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003exml\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003ensarray\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext[]\u003c/code\u003e\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003exml[]\u003c/code\u003e","returns":"xml[]","text":"xpath ( xpath text, xml xml [, nsarray text[]] ) → xml[]","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
