|
From: | Per Bothner |
Subject: | Re: [Qexo-general] Newbie - Calling XQuery from Java - "RunXQuery.java" |
Date: | Fri, 17 Jan 2003 00:08:21 -0800 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202 |
Phil Shaw wrote:
Hi, When I run the "RunXQuery" example class, it all seems to work fine, except that the value returned in "result" by the following Doesn't seem to be a String: Object result = xq.eval(exp) The "toString()" (implicit or explicit) value from that is "address@hidden", regardless what sort of simple query I run.
The class gnu.mapping.Values is uses to implement XQuery sequences that are not a single value. The result would not be a String. I recently added (in CVS) a toString implementation for Values, but it is better to avoid using it. See http://www.gnu.org/software/qexo/Running.html , especially the "Calling XQuery Expressions from Java" section. -- --Per Bothner address@hidden http://www.bothner.com/per/
[Prev in Thread] | Current Thread | [Next in Thread] |