This distribution of XML Query Engine comes with five sample applications, illustrating various features of the engine and how to wire it to your front-end code. There's a fuller description in the readme.txt file that comes with the download that discusses setup and classpath issues. Note in particular, if you've been using earlier versions of XQEngine, that the separate antlr.jar file is no longer required and shouldn't be used. The MiniApp sample application is probably a good place to start to get a quick overview of how to invoke and use the query engine in actual code. Both the indexed data file and query are hard-wired in.
Results just write to the console.
The ability to tab back and forth to view the various result-set formats should give you a quick understanding of how they differ in structure and their relative performance in how quickly they deliver their results. MiniApp.java A bare-bones, minimal application that exercises most of XML Query Engine's APIs. It shows how to configure the query engine's various indexing options, register an XQLResultListener against it, index a file, and set a query against the resulting index. The precompiled version of this sample that ships with the distribution again uses the file Xml in Xml . You can enter any valid XQL query in the text field, press the enter or return key, and depending on which tabbed pane is at the front, see the result set as delivered by a standard , summary , or CSV listener .