"Returns the unique id for this Resource or null if the Resource is anonymous. The Resource will be anonymous if it is obtained as the result of a query."

Thanks for the detailed explanation. But why did I think that it was our fault? :-)


I must confess I find this pretty strange, but I guess the XML:DB API guys know what they're doing?

For example, the following code will not work:

      String xpath_query = "//person[first='John']";
      XPathQueryService xpath = (XPathQueryService)
col.getService("XPathQueryService", "1.0");
      ResourceSet resultSet = xpath.query(xpath_query);

      ResourceIterator results = resultSet.getIterator();
      Resource res = results.nextResource();

--->  Resource res2 = col.getResource(res.getId());
--->  col.removeResource(res2);

which is very very strange.

I'll send a mail to the XMLDB:API guys to know more about this issue.

-Vladimir

--
Vladimir R. Bossicard
Apache Xindice - http://xml.apache.org/xindice



Reply via email to