</pre>
We want to extend BaseX with this class and use its method. In order to make this possible we have to define an XQuery function which wraps the <code>print </code> method of our class. This can be done in the following way:
<pre class="brush:xquery">