# Unit xquery_module_file

Description
Uses
Classes, Interfaces, Objects and Records
Functions and Procedures
Types
Constants
Variables

## Description

This unit implements the file module of http://expath.org/spec/file

Call registerModuleFile to register it. Afterwards you can use e.g. `query('Q{http://expath.org/ns/file}exists("/tmp/")')` to test for the existence of a file. If you add the namespace to the namespaces in the static context, you can write it simpler as `query('f:exists("/tmp/")')`.

## Overview

### Functions and Procedures

`procedure registerModuleFile;`

### Constants

`XMLNamespaceURL_Expath_File = 'http://expath.org/ns/file';`

### Variables

`XMLNamespace_Expath_File: TNamespace;`

## Description

### Functions and Procedures

`procedure registerModuleFile;`
Registers the module to the XQuery engine

### Constants

`XMLNamespaceURL_Expath_File = 'http://expath.org/ns/file';`

### Variables

`XMLNamespace_Expath_File: TNamespace;`

Generated by PasDoc 0.16.0.