{"Entry":{"collection":"func","key":"query-to-xml-and-xmlschema","name":"query_to_xml_and_xmlschema","aliases":[],"metadata":{"changed_in":[],"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":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"8.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"7ca96d1bf8c46087696258a42eb96b19725495a0b1ef63a90ec1647c4263ba1e","first_version":"8.3","group":"xml","group_label":"Xml Functions","groups":["xml"],"imported_at":"2026-09-27T17:57:28.767492+08:00","last_version":"20","name":"query_to_xml_and_xmlschema","name_key":"query_to_xml_and_xmlschema","position":15006,"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":"query_to_xml_and_xmlschema ( query text, nulls boolean, tableforest boolean, targetns text ) → xml","signature_count":1,"slug":"query-to-xml-and-xmlschema","source_rev":"b7bd9cda","summary":"In addition, the following functions are available to produce analogous mappings of entire schemas or the entire current database:","summary_zh":""}},"Definition":{"Collection":"func","Key":"query-to-xml-and-xmlschema","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"query-to-xml-and-xmlschema","SourceRevision":"b7bd9cda","Facts":{"description":"In addition, the following functions are available to produce analogous mappings of entire schemas or the entire current database:","description_html":"In addition, the following functions are available to produce analogous mappings of entire schemas or the entire current database:","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-XML-MAPPING","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":"In addition, the following functions are available to produce analogous mappings of entire schemas or the entire current database:","description_html":"In addition, the following functions are available to produce analogous mappings of entire schemas or the entire current database:","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003equery_to_xml_and_xmlschema\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003equery\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003enulls\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etableforest\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etargetns\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003exml\u003c/code\u003e","returns":"xml","text":"query_to_xml_and_xmlschema ( query text, nulls boolean, tableforest boolean, targetns text ) → xml","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-XML-MAPPING","file":"functions-xml.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"query-to-xml-and-xmlschema","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"query_to_xml_and_xmlschema","Summary":"下面的函数产生 XML 数据映射和对应的 XML 模式，并把产生的结果链接在一起放在一个文档（或森林）中。在要求自包含和自描述的结果时，它们非常有用：","BodyHTML":"下面的函数产生 XML 数据映射和对应的 XML 模式，并把产生的结果链接在一起放在一个文档（或森林）中。在要求自包含和自描述的结果时，它们非常有用：\u003cpre\u003equery_to_xml_and_xmlschema ( query text, nulls boolean, tableforest boolean, targetns text ) → xml\u003c/pre\u003e下面的函数产生 XML 数据映射和对应的 XML 模式，并把产生的结果链接在一起放在一个文档（或森林）中。在要求自包含和自描述的结果时，它们非常有用：","SourceRevision":"ca936764","ContentHash":"969d2506e4611c085f7b8cfd3fb858682c18f7041fc8f16ec8523595a6dd8d13","Payload":{"description_zh":"下面的函数产生 XML 数据映射和对应的 XML 模式，并把产生的结果链接在一起放在一个文档（或森林）中。在要求自包含和自描述的结果时，它们非常有用：","description_zh_html":"下面的函数产生 XML 数据映射和对应的 XML 模式，并把产生的结果链接在一起放在一个文档（或森林）中。在要求自包含和自描述的结果时，它们非常有用：","signatures":[{"description_zh":"下面的函数产生 XML 数据映射和对应的 XML 模式，并把产生的结果链接在一起放在一个文档（或森林）中。在要求自包含和自描述的结果时，它们非常有用：","description_zh_html":"下面的函数产生 XML 数据映射和对应的 XML 模式，并把产生的结果链接在一起放在一个文档（或森林）中。在要求自包含和自描述的结果时，它们非常有用：","returns":"xml","text":"query_to_xml_and_xmlschema ( query text, nulls boolean, tableforest boolean, targetns 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":"fc7c4e97523bc978f2891cec0ab81695886646405d8d6030a2dd19c82eeb1843","Text":"query_to_xml_and_xmlschema ( query text, nulls boolean, tableforest boolean, targetns text ) → xml","Returns":"xml","Payload":{"description":"In addition, the following functions are available to produce analogous mappings of entire schemas or the entire current database:","description_html":"In addition, the following functions are available to produce analogous mappings of entire schemas or the entire current database:","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003equery_to_xml_and_xmlschema\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003equery\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003enulls\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etableforest\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etargetns\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003exml\u003c/code\u003e","returns":"xml","text":"query_to_xml_and_xmlschema ( query text, nulls boolean, tableforest boolean, targetns text ) → xml","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
