Nux 1.6

nux.xom.sandbox
Class SimpleXQueryCommand

java.lang.Object
  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:
whoschek.AT.lbl.DOT.gov, $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

main

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

Nux 1.6