XQuery Element Constructors


XQuery element constructor can create XML structures within a query; "{" and "} delimit enclosed expressions:

Generate an example structure, and complete the title based on the query result:

		<example>
			<title> { $i//title }</title>
		</example>

may return:

		<example>
			<title>The retrieved title</title>
		</example>