From: Andrew W. <and...@gm...> - 2011-03-08 15:44:08
|
On 8 March 2011 14:59, Patrick Bosek <pat...@jo...> wrote: > I'm not sure what you mean by "It same as xquery rules", but "//group" > doesn't work because it returns me every group element in the database. > ".//group" works fine when I go through the process of compiling the query > (as in the one shown below). I was just hoping to avoid this process for > simple xpath queries. > CompiledXQuery compiled = xquery.compile(context, source); It's because you set the context in the compiled query ^^^^^^^^^^ To use . you have to have a context, otherwise you will get the error you are getting. -- Andrew Welch http://andrewjwelch.com |