try
{
Document doc = new Document( new File( args[0] ) );
XPath xpath = new ElectricXPath( args[1] );
List results = xpath.selectNodes( doc );
Iterator resultIter = results.iterator();
System.out.println("Document :: " + args[0] );
System.out.println(" XPath :: " + args[1] );