Hello I'm quite new to XML-based databases and I have some troubles with the collection concept in Sedna.
If I create several collections in a database using the CREATE COLLECTION command, how are they organized? Is there still a root collection or are they all at the same level? The xmldb API apparently gives two functions to get a collection : DatabaseManager.getCollection(...) and Collection.getChildCollection(...) Would the following procedure be correct? - Create a root collection (let's say Main) with CREATE COLLECTION Main - Create child collections inside that collection, using the xmldb function CollectionManagementService.createChildCollection(...) - use DatabaseManager.getCollection(...) to get the root collection and then use something like myMainCollection.getChildCollection() in a loop On a side note, let's say I have a Java project using Sedna, which I want to give to some people for testing : they'll use their own instance of Sedna, thus they'll need the same collections. Would it be better to have a Java method checking the collections and creating them if need be, or can I write some sort of script (like, say, in MySQL) to create the collections after setting up the database? Thank you for your help
------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________ Sedna-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sedna-discussion
