Nux 1.6

Class SimpleXQueryCommand

  extended by nux.xom.sandbox.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/xom.jar
 java nux.xom.sandbox.SimpleXQueryCommand '{doc("samples/data/periodic.xml")/PERIODIC_TABLE/ATOM[NAME = "Zinc"]}'
 java nux.xom.sandbox.SimpleXQueryCommand '{count(//*)}' samples/data/periodic.xml 
 java nux.xom.sandbox.SimpleXQueryCommand 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.6