Re: [bdbxml] XPATH_EVALUATION_ERROR

George Feinberg <[email protected]>
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
Maike,
> I have a problem with query XML-documents. I can create and open  
> containern, put documents into the container and get documents from  
> the container. But when I use the query
>
> collection('D:/myContainer.bdbxml')/*
>
>  I get the following error:
>
> com.sleepycat.dbxml.XmlException: Error: Cannot resolve collection:  
> D:/myContainer.bdbxml, errcode = XPATH_EVALUATION_ERROR

This is a known issue in release 2.1.8.  Using absolute paths
as an argument to the collection() function on Windows
fails to resolve the argument to a BDB XML container.

The simplest workaround is to alias the container.  After you
open the container, use this method:
     container.addAlias("mycontainer");
Then, in the query, you can use:
     collection('mycontainer')/*

In general, aliasing container names is useful to eliminate
all possibility of different paths resolving to different container
names.  It is no less efficient, internally, to use aliases.

Regards,

George
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.