Nux 1.3

Class SimpleXQueryCommand

  extended bynux.xom.tests.SimpleXQueryCommand

public final class SimpleXQueryCommand
extends Object

Simple command line demo that runs a given XQuery against a file and prints the result sequence. A query can be read from a file or given inline between curly braces. This demo is for new users to get started, and not intended for production use.

Example usage (using Unix shell quoting with the ' character):

 export CLASSPATH=lib/nux.jar:lib/saxon8.jar:lib/saxon8-xom.jar:lib/xom.jar
 java nux.xom.tests.XQueryCommand '{doc("samples/data/periodic.xml")/PERIODIC_TABLE/ATOM[NAME = "Zinc"]}'
 java nux.xom.tests.XQueryCommand '{count(//*)}' samples/data/periodic.xml 
 java nux.xom.tests.XQueryCommand samples/xmark/q03.xq samples/xmark/auction-0.01.xml

Author:, $Author: hoschek3 $

Method Summary
static void main(String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static void main(String[] args)
                 throws Exception

Nux 1.3