Re: [bdbxml] Query to retrieve all container content?

John Snelson <[email protected]> Sat, 06 Aug 2005 13:09:02 +0100
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
The query

collection('sample.dbxml')

will do what you want.

John

Antony Grinyer wrote:
> Can anyone tell me if there's a generic XQuery that will return me all 
> the XML content in a container without having to specify element names?
>  
> e.g. collection('sample.dbxml')// (doesn't work)
>  
> I could use a FLWOR expressions such as:
>  
> for $i in collection('Sample.bdbxml')/publication return $i
>  
> but I don't want to have to supply the /publication element. This is 
> because we may not know what the XML document structures are in the 
> container.
>  
> Thanks,
> Ant
>  


-- 
John Snelson, Berkeley DB XML Engineer
Sleepycat Software, Inc
http://www.sleepycat.com

Contracted to Sleepycat through Parthenon Computing Ltd
http://blog.parthcomp.com/dbxml


------------------------------------------
To remove yourself from this list, send an
email to [email protected]