Create a sample Java Standalone Application that illustrates the usage of XQuery (not XPath!) with Berkeley DB XML Version 2.2 for Java (OpenSource distribution available for free at sleepycat dot com).
The applications must use the data from the 'gettingStarted' examples.
The XQuery code must be read dynamically from a query file. The result of the query must be written to Standard Output or to a result file. The sources of the sample application have to be handed out to us.