{"Entry":{"collection":"func","key":"xmlforest","name":"xmlforest","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":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"789ef16b488e9a3286d0f836a9dd3b07035e941e5bf47f16a105b71f8b0c94d6","first_version":"8.3","group":"xml","group_label":"Xml Functions","groups":["xml"],"imported_at":"2026-09-27T17:57:28.802208+08:00","last_version":"20","name":"xmlforest","name_key":"xmlforest","position":15022,"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":"xmlforest ( content [AS name] [, ...] ) → xml","signature_count":1,"slug":"xmlforest","source_rev":"b7bd9cda","summary":"The xmlforest expression produces an XML forest (sequence) of elements using the given names and content.","summary_zh":""}},"Definition":{"Collection":"func","Key":"xmlforest","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"xmlforest","SourceRevision":"b7bd9cda","Facts":{"description":"The xmlforest expression produces an XML forest (sequence) of elements using the given names and content. As for xmlelement, each name must be a simple identifier, while the content expressions can have any data type.","description_html":"The \u003ccode class=\"function\"\u003exmlforest\u003c/code\u003e expression produces an XML forest (sequence) of elements using the given names and content. As for \u003ccode class=\"function\"\u003exmlelement\u003c/code\u003e, each \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e must be a simple identifier, while the \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtent\u003c/code\u003e\u003c/em\u003e expressions can have any data type.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-PRODUCING-XML-XMLFOREST","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 xmlforest expression produces an XML forest (sequence) of elements using the given names and content. As for xmlelement, each name must be a simple identifier, while the content expressions can have any data type.","description_html":"The \u003ccode class=\"function\"\u003exmlforest\u003c/code\u003e expression produces an XML forest (sequence) of elements using the given names and content. As for \u003ccode class=\"function\"\u003exmlelement\u003c/code\u003e, each \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e must be a simple identifier, while the \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtent\u003c/code\u003e\u003c/em\u003e expressions can have any data type.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003exmlforest\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtent\u003c/code\u003e\u003c/em\u003e [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eAS\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e, ...\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003exml\u003c/code\u003e","returns":"xml","text":"xmlforest ( content [AS name] [, ...] ) → xml","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-PRODUCING-XML-XMLFOREST","file":"functions-xml.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"xmlforest","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"xmlforest","Summary":"表达式xmlforest使用给定名称和内容产生由元素构成的 XML 森林（序列）。与xmlelement一样，每个name都必须是一个简单的标识符，而content表达式可以有任何数据类型。","BodyHTML":"表达式\u003ccode\u003exmlforest\u003c/code\u003e使用给定名称和内容产生由元素构成的 XML 森林（序列）。与\u003ccode\u003exmlelement\u003c/code\u003e一样，每个\u003cem\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e都必须是一个简单的标识符，而\u003cem\u003e\u003ccode\u003econtent\u003c/code\u003e\u003c/em\u003e表达式可以有任何数据类型。\u003cpre\u003exmlforest ( content [AS name] [, ...] ) → xml\u003c/pre\u003e表达式\u003ccode\u003exmlforest\u003c/code\u003e使用给定名称和内容产生由元素构成的 XML 森林（序列）。与\u003ccode\u003exmlelement\u003c/code\u003e一样，每个\u003cem\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e都必须是一个简单的标识符，而\u003cem\u003e\u003ccode\u003econtent\u003c/code\u003e\u003c/em\u003e表达式可以有任何数据类型。","SourceRevision":"ca936764","ContentHash":"dc29fc1d7a06d98f9f763b5d4b5d36a61c4f6e1df5b403d28ad14353c993ce23","Payload":{"description_zh":"表达式xmlforest使用给定名称和内容产生由元素构成的 XML 森林（序列）。与xmlelement一样，每个name都必须是一个简单的标识符，而content表达式可以有任何数据类型。","description_zh_html":"表达式\u003ccode class=\"function\"\u003exmlforest\u003c/code\u003e使用给定名称和内容产生由元素构成的 XML 森林（序列）。与\u003ccode class=\"function\"\u003exmlelement\u003c/code\u003e一样，每个\u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e都必须是一个简单的标识符，而\u003cem class=\"replaceable\"\u003e\u003ccode\u003econtent\u003c/code\u003e\u003c/em\u003e表达式可以有任何数据类型。","signatures":[{"description_zh":"表达式xmlforest使用给定名称和内容产生由元素构成的 XML 森林（序列）。与xmlelement一样，每个name都必须是一个简单的标识符，而content表达式可以有任何数据类型。","description_zh_html":"表达式\u003ccode class=\"function\"\u003exmlforest\u003c/code\u003e使用给定名称和内容产生由元素构成的 XML 森林（序列）。与\u003ccode class=\"function\"\u003exmlelement\u003c/code\u003e一样，每个\u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e都必须是一个简单的标识符，而\u003cem class=\"replaceable\"\u003e\u003ccode\u003econtent\u003c/code\u003e\u003c/em\u003e表达式可以有任何数据类型。","returns":"xml","text":"xmlforest ( content [AS name] [, ...] ) → 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":"1e6cbbb30dd4425cb7d7222338ee0c248dd23f1b398cffda876b2b26a125a75f","Text":"xmlforest ( content [AS name] [, ...] ) → xml","Returns":"xml","Payload":{"description":"The xmlforest expression produces an XML forest (sequence) of elements using the given names and content. As for xmlelement, each name must be a simple identifier, while the content expressions can have any data type.","description_html":"The \u003ccode class=\"function\"\u003exmlforest\u003c/code\u003e expression produces an XML forest (sequence) of elements using the given names and content. As for \u003ccode class=\"function\"\u003exmlelement\u003c/code\u003e, each \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e must be a simple identifier, while the \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtent\u003c/code\u003e\u003c/em\u003e expressions can have any data type.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003exmlforest\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtent\u003c/code\u003e\u003c/em\u003e [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eAS\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e, ...\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003exml\u003c/code\u003e","returns":"xml","text":"xmlforest ( content [AS name] [, ...] ) → xml","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
