Thank you, Stephane! now it compiles with no error.
P.S. I've checked out xindice cvs now and found that in examples all
connections are retrieving with col =
DatabaseManager.getCollection("xmldb:dbxml:///db/");
so where did I get this string (xmldb:xindice:///db/) from??? absolutely no
idea... I mean, should there be xmldb:dbxml or xmldb:xindice?
----- Original Message -----
From: "Stephane Nimsgern" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, January 25, 2002 2:38 PM
Subject: RE: how can I list collections?
> Hi
> This code looks well but Instead of listCollections() I'd try
> listChildCollections();
>
> -{Hi! How can I list collections? This code gives an error
> -{
> -{String[] colindex = null;
> -{String driver = database_driver;
> -{ Class c = Class.forName(driver);
> -{
> -{ Database database = (Database) c.newInstance();
> -{ DatabaseManager.registerDatabase(database);
> -{ String r = database_prefix+parent;
> -{ System.out.println("gettin collection list"+r);
> -{ col = DatabaseManager.getCollection(r);
> -{ colindex = col.listCollections();
> -{
> -{at col.listCollections();
> -{ru/evolve/innersmile/Connector.java [74:1] cannot resolve symbol
> -{symbol : method listCollections ()
> -{location: interface org.xmldb.api.base.Collection
> -{ colindex = col.listCollections();
>
>