From: Wolfgang M. <wol...@gm...> - 2006-12-09 15:58:26
|
> when I have a db created on such uri: > > xmldb:exist:///db/shakespeare/plays > > and try to run an xpath query like: > > service.query("//PLAY") > > the result does not have any resources in the ResourceSet, however, > with the query > > service.query("//*") > > I get the participating resources. Both queries should be ok, though they will return different results. However, I would recommend to always specify the collection in the query, e.g.: collection("/db/shakespeare/plays")/PLAY This way the context will be explicit to the query engine. Wolfgang |