Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] fire-xquery | FileNotFoundException

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • To: Anoop kumar V <anoopkumarv AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] fire-xquery | FileNotFoundException
  • Date: Sat, 24 Dec 2005 16:50:10 -0800

Perfect, Yes - that was it. Thank you.


Yes, quoting and escaping are a function of the command line shell and never seen by the java program. The quoting conventions vary from shell to shell.

As part of the download there's a directory nux/samples/data with lots of sample files.
There are also sample xqueries in nux/samples/xmark.
Another good starting point: If you separately download saxon from http://saxon.sourceforge.net/ you'll find the sample W3C use case queries in saxon/use-cases.

Wolfgang.


On Dec 24, 2005, at 4:00 PM, Anoop kumar V wrote:


Also if you could help me further ...... Where can I find the sample java programs written to work with NUX - there are references to the samples in the documentation but I could not find them in my download (nux 4.1)

Thanks again,
Anoop

On 12/24/05, Wolfgang Hoschek <wolfgang.hoschek AT mac.com> wrote: I think escaping characters is different on Windows than on Unix. On
Windows try using double quotes, as in

--query="{count(//*)}"

or similar. (Sorry, I'm not really a Windows guy).

Wolfgang.

On Dec 24, 2005, at 12:43 PM, Anoop kumar V wrote:

> Hi All,
>
> I have just downloaded nux and am learning the ropes of how to use
> it. I
> read some things about XQuery and I think it will help in my work a
> lot.
> But when I try to run the fire-xquery utility from the command
> prompt I keep
> getting this error - I have tried various combinations - like
> running it
> from under samples/data. Adding fire-xquery.bat to my path env
> variable etc
> etc... but I have not been able to get this to work...
>
> C:\tools\nux\bin>fire-xquery --debug --query='{count(//*)}'
> ..\samples\data\*.xml
> Oopsla: java.io.FileNotFoundException: '{count(\*)}' (The system
> cannot find
> the path specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream .<init>(FileInputStream.java:106)
> at nux.xom.pool.XQueryFactory.createXQuery
> (XQueryFactory.java:140)
> at nux.xom.pool.XQueryPool.getXQuery(XQueryPool.java:190)
> at nux.xom.tests.XQueryCommand.run(XQueryCommand.java:538)
> at nux.xom.tests.CmdLineProgram.doMain (CmdLineProgram.java:62)
> at nux.xom.tests.XQueryCommand.main(XQueryCommand.java:132)
>
> Can somebody help me by pointing out what I am doing wrong??
>
> I hope this is the right mailing list - coz nux itself did not have
> one. If
> not please redirect me to the right mailing list.
>
> --
> Thanks and best regards,
> Anoop
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
>




--
Thanks and best regards,
Anoop





Archive powered by MHonArc 2.6.24.

Top of Page