{"Entry":{"collection":"func","key":"xpath-exists","name":"xpath_exists","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.0","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.1"},{"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":"9dd33e8da78891f41fed9f0eb2a55dfdc955b6274fa5387974de4371ff042696","derived_content_hash":"fed3cc3c13b0b6886ebae4bd81f1b16bdcb341362061c5e5b5d142e8a017edc9","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:93484eb716fe6f98b9093b6bc126db9906c55bafb1b6ed59a218f377c2ee709b","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.1","group":"xml","group_label":"Xml Functions","groups":["xml"],"imported_at":"2026-09-14T21:49:48.777561+08:00","last_version":"20","name":"xpath_exists","name_key":"xpath_exists","position":15028,"present_in":["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":"2026-09-14T13:14:25.684213+00:00@99e6866c","receipt_sha256":"ba1af4732f704161b115af58693f8185504a25210beb796ce22bf07c7124807f","repair":"wiki-repair-20261023"},"signature":"xpath_exists ( xpath text, xml xml [, nsarray text[]] ) → boolean","signature_count":1,"slug":"xpath-exists","source_rev":"wiki-repair-20261023:93484eb716fe6f98b9093b6bc126db9906c55bafb1b6ed59a218f377c2ee709b","summary":"The function xpath_exists is a specialized form of the xpath function.","summary_zh":""}},"Definition":{"Collection":"func","Key":"xpath-exists","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"xpath-exists","SourceRevision":"wiki-repair-20261023:93484eb716fe6f98b9093b6bc126db9906c55bafb1b6ed59a218f377c2ee709b","Facts":{"description":"The function xpath_exists is a specialized form of the xpath function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the XMLEXISTS predicate, except that it also offers support for a namespace mapping argument.","description_html":"The function \u003ccode class=\"function\"\u003expath_exists\u003c/code\u003e is a specialized form of the \u003ccode class=\"function\"\u003expath\u003c/code\u003e function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the \u003ccode class=\"literal\"\u003eXMLEXISTS\u003c/code\u003e predicate, except that it also offers support for a namespace mapping argument.","description_zh":"函数 xpath_exists 是 xpath 函数的一种特殊形式。这个函数不是返回满足 XPath 1.0 表达式的各个 XML 值，它返回一个布尔值表示查询是否被满足（具体来说，它是否产生了空节点集以外的任何值）。这个函数等价于标准的 XMLEXISTS 谓词，不过它还提供了对一个名字空间映射参数的支持。","description_zh_html":"函数 \u003ccode class=\"function\"\u003expath_exists\u003c/code\u003e 是 \u003ccode class=\"function\"\u003expath\u003c/code\u003e 函数的一种特殊形式。这个函数不是返回满足 XPath 1.0 表达式的各个 XML 值，它返回一个布尔值表示查询是否被满足（具体来说，它是否产生了空节点集以外的任何值）。这个函数等价于标准的 \u003ccode class=\"literal\"\u003eXMLEXISTS\u003c/code\u003e 谓词，不过它还提供了对一个名字空间映射参数的支持。","doc":{"anchor":"FUNCTIONS-XML-PROCESSING-XPATH-EXISTS","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_exists is a specialized form of the xpath function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the XMLEXISTS predicate, except that it also offers support for a namespace mapping argument.","description_html":"The function \u003ccode class=\"function\"\u003expath_exists\u003c/code\u003e is a specialized form of the \u003ccode class=\"function\"\u003expath\u003c/code\u003e function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the \u003ccode class=\"literal\"\u003eXMLEXISTS\u003c/code\u003e predicate, except that it also offers support for a namespace mapping argument.","description_zh":"函数 xpath_exists 是 xpath 函数的一种特殊形式。这个函数不是返回满足 XPath 1.0 表达式的各个 XML 值，它返回一个布尔值表示查询是否被满足（具体来说，它是否产生了空节点集以外的任何值）。这个函数等价于标准的 XMLEXISTS 谓词，不过它还提供了对一个名字空间映射参数的支持。","description_zh_html":"函数 \u003ccode class=\"function\"\u003expath_exists\u003c/code\u003e 是 \u003ccode class=\"function\"\u003expath\u003c/code\u003e 函数的一种特殊形式。这个函数不是返回满足 XPath 1.0 表达式的各个 XML 值，它返回一个布尔值表示查询是否被满足（具体来说，它是否产生了空节点集以外的任何值）。这个函数等价于标准的 \u003ccode class=\"literal\"\u003eXMLEXISTS\u003c/code\u003e 谓词，不过它还提供了对一个名字空间映射参数的支持。","examples":[],"html":"\u003ccode class=\"function\"\u003expath_exists\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\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"xpath_exists ( xpath text, xml xml [, nsarray text[]] ) → boolean","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-EXISTS","file":"functions-xml.html","sha256":"01aeb9b85a44b934664d02e73f09eba80ac8da243706dd1ea2b4943d6cf43a31","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"xpath-exists","SourceDatabase":"center","Version":"18","Locale":"en","Title":"xpath_exists","Summary":"The function xpath_exists is a specialized form of the xpath function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the XMLEXISTS predicate, except that it also offers support for a namespace mapping argument.","BodyHTML":"The function \u003ccode\u003expath_exists\u003c/code\u003e is a specialized form of the \u003ccode\u003expath\u003c/code\u003e function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the \u003ccode\u003eXMLEXISTS\u003c/code\u003e predicate, except that it also offers support for a namespace mapping argument.","SourceRevision":"wiki-repair-20261023:93484eb716fe6f98b9093b6bc126db9906c55bafb1b6ed59a218f377c2ee709b","ContentHash":"6af2b8d54e62b7120f33d3db27d1c71518d6089bcdd688a819598bee206bee28","Payload":{"description":"The function xpath_exists is a specialized form of the xpath function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the XMLEXISTS predicate, except that it also offers support for a namespace mapping argument.","description_html":"The function \u003ccode class=\"function\"\u003expath_exists\u003c/code\u003e is a specialized form of the \u003ccode class=\"function\"\u003expath\u003c/code\u003e function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the \u003ccode class=\"literal\"\u003eXMLEXISTS\u003c/code\u003e predicate, except that it also offers support for a namespace mapping argument.","signatures":[{"description":"The function xpath_exists is a specialized form of the xpath function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the XMLEXISTS predicate, except that it also offers support for a namespace mapping argument.","description_html":"The function \u003ccode class=\"function\"\u003expath_exists\u003c/code\u003e is a specialized form of the \u003ccode class=\"function\"\u003expath\u003c/code\u003e function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the \u003ccode class=\"literal\"\u003eXMLEXISTS\u003c/code\u003e predicate, except that it also offers support for a namespace mapping argument.","description_zh":"函数 xpath_exists 是 xpath 函数的一种特殊形式。这个函数不是返回满足 XPath 1.0 表达式的各个 XML 值，它返回一个布尔值表示查询是否被满足（具体来说，它是否产生了空节点集以外的任何值）。这个函数等价于标准的 XMLEXISTS 谓词，不过它还提供了对一个名字空间映射参数的支持。","description_zh_html":"函数 \u003ccode class=\"function\"\u003expath_exists\u003c/code\u003e 是 \u003ccode class=\"function\"\u003expath\u003c/code\u003e 函数的一种特殊形式。这个函数不是返回满足 XPath 1.0 表达式的各个 XML 值，它返回一个布尔值表示查询是否被满足（具体来说，它是否产生了空节点集以外的任何值）。这个函数等价于标准的 \u003ccode class=\"literal\"\u003eXMLEXISTS\u003c/code\u003e 谓词，不过它还提供了对一个名字空间映射参数的支持。","examples":[],"html":"\u003ccode class=\"function\"\u003expath_exists\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\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"xpath_exists ( xpath text, xml xml [, nsarray text[]] ) → boolean","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"6f59ecb3bf426eab6b880ffd591e6a9899205f478667aab5ad8b3e2806412223","Text":"xpath_exists ( xpath text, xml xml [, nsarray text[]] ) → boolean","Returns":"boolean","Payload":{"description":"The function xpath_exists is a specialized form of the xpath function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the XMLEXISTS predicate, except that it also offers support for a namespace mapping argument.","description_html":"The function \u003ccode class=\"function\"\u003expath_exists\u003c/code\u003e is a specialized form of the \u003ccode class=\"function\"\u003expath\u003c/code\u003e function. Instead of returning the individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the \u003ccode class=\"literal\"\u003eXMLEXISTS\u003c/code\u003e predicate, except that it also offers support for a namespace mapping argument.","description_zh":"函数 xpath_exists 是 xpath 函数的一种特殊形式。这个函数不是返回满足 XPath 1.0 表达式的各个 XML 值，它返回一个布尔值表示查询是否被满足（具体来说，它是否产生了空节点集以外的任何值）。这个函数等价于标准的 XMLEXISTS 谓词，不过它还提供了对一个名字空间映射参数的支持。","description_zh_html":"函数 \u003ccode class=\"function\"\u003expath_exists\u003c/code\u003e 是 \u003ccode class=\"function\"\u003expath\u003c/code\u003e 函数的一种特殊形式。这个函数不是返回满足 XPath 1.0 表达式的各个 XML 值，它返回一个布尔值表示查询是否被满足（具体来说，它是否产生了空节点集以外的任何值）。这个函数等价于标准的 \u003ccode class=\"literal\"\u003eXMLEXISTS\u003c/code\u003e 谓词，不过它还提供了对一个名字空间映射参数的支持。","examples":[],"html":"\u003ccode class=\"function\"\u003expath_exists\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\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"xpath_exists ( xpath text, xml xml [, nsarray text[]] ) → boolean","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
