return db:open($db)//name[text() = 'John']
}
</pre>
* {{Version|9.0}}: Temporarily disable copying of nodes in node constructors (see {{Option|COPYNODE}} for more details). The following query will be evaluated faster, and take much less memory, than without pragma:
<pre class="brush:xquery">
file:write(
file:base-dir() || 'wrapped-db-nodes.xml',
(# db:copynode false #) {
<xml>{ db:open('huge') }</xml>
}
)
</pre>