Writing an XQuery Module
This section explains a sample XQuery function with the required search parameters. After you write your own custom XQuery function, you must enclose the function in an XQuery module.
For our example, we will create an XQuery function etAPIsWithAPIKeys() and enclose the function in an XQuery module. Let's call this module as apiusage.module.