{"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","derived_content_hash":"a39f3edfc846f6400a952a41239511c0dd0ad7f14901f0c14fbef78fd47b190f","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:08d6870b895dce9be78fb2e1a495a0596efd0f80dd232326c57f6d6af0c2362e","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"1e8e7ab2a7b1718056ef5645bd9355f722676d44aa1c4a86daa40ba1a75c549e","repair":"wiki-repair-20261023"},"signature":"xpath ( xpath text, xml xml [, nsarray text[]] ) → xml[]","signature_count":1,"slug":"xpath","source_rev":"wiki-repair-20261023:08d6870b895dce9be78fb2e1a495a0596efd0f80dd232326c57f6d6af0c2362e","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":"wiki-repair-20261023:08d6870b895dce9be78fb2e1a495a0596efd0f80dd232326c57f6d6af0c2362e","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":"函数 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 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。","doc":{"anchor":"FUNCTIONS-XML-PROCESSING-XPATH","file":"functions-xml.html","sha256":"01aeb9b85a44b934664d02e73f09eba80ac8da243706dd1ea2b4943d6cf43a31","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-xml.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"01aeb9b85a44b934664d02e73f09eba80ac8da243706dd1ea2b4943d6cf43a31","version":"18.7"},{"file":"functions-xml.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"7f81f95d894b56436ba5c9f248999c6f79a15eff2f8e02803e9578894005ba44","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"xml","group_label":"XML 函数","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":"函数 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 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。","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":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-xml.html","sha256":"fecb5d8486a96d59e4b5808eeaa769d216ab3be80602eb0c73702f28dd37388c"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-XML-PROCESSING-XPATH","file":"functions-xml.html","sha256":"01aeb9b85a44b934664d02e73f09eba80ac8da243706dd1ea2b4943d6cf43a31","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"xpath","SourceDatabase":"center","Version":"18","Locale":"en","Title":"xpath","Summary":"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.","BodyHTML":"The function \u003ccode\u003expath\u003c/code\u003e evaluates the XPath 1.0 expression \u003cem\u003e\u003ccode\u003expath\u003c/code\u003e\u003c/em\u003e (given as text) against the XML value \u003cem\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.","SourceRevision":"wiki-repair-20261023:08d6870b895dce9be78fb2e1a495a0596efd0f80dd232326c57f6d6af0c2362e","ContentHash":"f5750f092b52b8dee3cd4fdf48ecddd157f804d5e9a3f9202736528582731fac","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.","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":"函数 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 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。","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":"same-version-manual"}]}},"RequestedLocale":"en","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":"函数 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 表达式返回一个标量值而不是一个节点集合，将会返回一个单一元素的数组。","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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
