dbTalk Databases Forums  

Quering a subset of documents in BDBXML

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Quering a subset of documents in BDBXML in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Erik Braten
 
Posts: n/a

Default Quering a subset of documents in BDBXML - 09-24-2003 , 12:02 PM






Hi,

How can I do a query against a subset of the documents in a container, based
on their id?
The only possibility I have come across is to specify these id's as
attributes in the XPath query, but this seems a bit awkward when quering a
lot of documents.

regards,
Erik Braten



Reply With Quote
  #2  
Old   
John Merrells
 
Posts: n/a

Default Re: Quering a subset of documents in BDBXML - 09-25-2003 , 08:29 AM







Erik Braten wrote:
Quote:
How can I do a query against a subset of the documents in a container, based
on their id?
The only possibility I have come across is to specify these id's as
attributes in the XPath query, but this seems a bit awkward when quering a
lot of documents.
The only other solution I can think of is for you to iterate over
your list if IDs calling XmlContainer::getDocument for each and
then calling XmlDocument::queryWithXPath to execute the query over
that document.

John



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.