===XQuery===
Again, Similar to the other formats the text parser can also be specified in the prolog of an XQuery expression, andthe [[Database Module#db:add|db:add()]] or [[Database Module#db:replace|db:replace()]]function can be used to add the specified source files into the database.The following example query adds all text files to the database <code>DB</code>that are found in the directory <code>2Bimported</code> and its sub-directories:
<pre class="brush:xquery">