[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qexo-general] ffully qualied filenames
From: |
Jeff Kish |
Subject: |
[Qexo-general] ffully qualied filenames |
Date: |
Tue, 16 Nov 2004 21:59:16 -0500 |
Hi.
I'm trying to get a query to run using a fully qualified filename, but
can't seem to figure out the problem.
It runs fine if I just have the filename itself, or "../test.xml and run
from the directory the file is in, but I'd like to be able to put this in a
java file and run it from anywhere, so I need to be able to use a fully
qualified name.
Here is the query and the error:
C:\Temp>java -jar C:\XmlTools\jars\kawa-1.7.90.jar --xquery
(: 1 :) for $b in document("c:/temp/test.xml")//tablebody return $b
<stdin>:2:1 (or later): caught IOException
java.io.FileNotFoundException: C:\Temp\c:\temp\test.xml (The filename,
directory name, or volume label syntax is incorre
ct)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
at gnu.kawa.xml.XMLParser.<init>(XMLParser.java:51)
at gnu.kawa.xml.Document.parse(Document.java:52)
at gnu.kawa.xml.Document.apply(Document.java:94)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:289)
at gnu.mapping.CallContext.runUntilValue(CallContext.java:371)
at atInteractiveLevel.apply(<stdin>:1)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:289)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:188)
at kawa.Shell.run(Shell.java:233)
at kawa.Shell.run(Shell.java:180)
at kawa.Shell.run(Shell.java:167)
at kawa.Shell.run(Shell.java:154)
at kawa.repl.main(repl.java:650)
(: 2 :)
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.796 / Virus Database: 540 - Release Date: 11/13/04
- [Qexo-general] ffully qualied filenames,
Jeff Kish <=