I guess I am forgetting something important. Anyway here is my xml (one record): <?xml version="1.0"?> <functionality xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/bugdb" src:key="name"> <name>PDF Channel</name> <description>PDF with information about the bug system</description> <need>low</need> <bonus>none</bonus> <relatedbugs>none</relatedbugs> <type>new</type> </functionality>
What I would like to do is the following: lets say <name> is unique then if I only want to have a certain name I should get one record. I tried the following: .......?xpath=/[EMAIL PROTECTED]:key="PDF"] and .......?xpath=/functionality[name="PDF Channel"] Both don't work. Well they don't give the result I want... Heike Franosch said that you can't query src:key because it is not part of the document. (thanks) But that only explaints to me why the first doesn't work. How can I make the second work? Regards + thanks, Edgar -----Oorspronkelijk bericht----- Van: Carsten Ziegert [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 7 mei 2002 10:02 Aan: Mailing List dbXML Onderwerp: Re: Newbie question, Usage Edgar, could you enclose the xml document you are looking for? How are you accessing Xindice? Via command line or Java api? Am 07.05.2002 9:08 Uhr schrieb "Graaf, Edgar de (fin)" unter <[EMAIL PROTECTED]>: > Hi, > > Could someone please help me on my way: I have a collection with multiple > records. I wan't to have a record with a certain key. I tried the following: > .......?xpath=/[EMAIL PROTECTED]:key="PDF"] > > This give me nothing (only collections/collection with nothing in it.) > > .....?xpath=/functionality > does work. > > It is probably some stupid mistake but could somebody help me out. > > Regards, > > Edgar > -- Medizinische Hochschule Hannover Fachhochschule Hannover Abt. Hämatologie und Onkologie FB Informations- und Kommunikationswesen Carl-Neuberg-Straße 1 Ricklinger Stadtweg 120 30625 Hannover 30459 Hannover ++49-511-9296-1650 http://summit-bmt.fh-hannover.de