a) create() takes an InputStream. Which character encoding is assumed (I'm guessing UTF-8?)
b) Query.next() returns a String. Is there a way/need to determine the type of the Query result (e.g., String, boolean, etc.)? (Or is an XQuery's result type statically determinable, in which case this would not be needed?)