On Thursday 21 November 2002 16:07, Lixin Meng wrote: > I am new to Xindice too. > > One question that I have is that where to find meta information about > collections. For example, if I want to find the name for all top level > nodes, instead of issuing query like "/" then iterating the whole > collection, is there a less expensive way to do so. Is there any > information in 'system' collection will accelerate the process? > > Lixin >
There are two things: each document in a collection has a NAME (key), and XML content, which itself obviously contains a root element, with a possibly completey different name. To find the document NAMES in a collection, using listdocuments from the cmd-line tool, or the equivalent API call is probably the fastest. On the other, to find elemnt names contained inside documents, you could use the "symbol tables" (only available for compressed collections, but these are the default types of collections in Xindice). To do so, look for a document called /db/system/SysSymbols/<collection_path> Where you must substitute the complete path of your collection, excluding the initial "/db/", and replacing all '/'s with '_'s For example, the collection /db/hello/world 's Symbol table would be in /db/system/SysSymbols/hello_world. This symbol table contains ALL element and attribute names present in any document in the collection. It's the only information I can think of... James > -----Original Message----- > From: James Bates [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 21, 2002 1:59 AM > To: [EMAIL PROTECTED] > Subject: Re: Xindice structure > > > As far as I understand (and that's mainly through reverse engeneering): > > The .tbl files are B-Tree files, that store the hierarchy of the XML > document > indexed using element and attribute names. In principle this allows for > faster searching for the information you're after. > > You can store any well-formed XML into Xindice, and the import procedures > will > automatically "cut up" your XML into the various parts needed to fill the > B-Tree. > > There is one B-Tree file for every collection you define, so in theory > cross-platforms searches would be slow... > > If anyone wishes to correct me, please go ahead. I wouldn't mind having > some direct info from the people that developed this myself :) (Kimbro?, > Tom?) > > James > > On Wednesday 20 November 2002 17:41, Alex Mariano Costa de Oliveira wrote: > > Hello, > > > > When I first read about XML native databases, I thought all of them > > could store XML documents. Working with Xindice, I realized that there > > is a .tbl file in any database directory. So, my questions are : > > - What does Xindice do with the XML documents added to a > > database? - What is that tbl file structure? > > - Is there any performance concern behind this structure? > > > > Regards, > > Alex Mariano