[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qexo-general] Using the Qexo API
From: |
Alessandro Vernet |
Subject: |
[Qexo-general] Using the Qexo API |
Date: |
Wed, 21 May 2003 16:49:41 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 |
Hi Per,
I am trying to use the Qexo API to run an XQuery but didn't have much
success. Here is some sample code:
import gnu.xquery.lang.XQuery;
import java.io.StringWriter;
public class Test {
public static void main(String[] args) {
try {
XQuery xquery = new XQuery();
StringWriter resultWriter = new StringWriter();
xquery.eval("<a/>", resultWriter);
System.out.println("Result: ->" + resultWriter.toString()
+ "<-");
} catch (Throwable throwable) {
throw new RuntimeException(throwable);
}
}
}
Running this with Kawa 1.7 beta, here is what I get on the standard
output:
Result: -><-
)
Any idea or suggestion?
Alex
- [Qexo-general] Using the Qexo API,
Alessandro Vernet <=