Show collections

Hi!

Is there a way to get a list with all collections from a DB? And a list with all doctypes?

Thanx!

Marco

Hi Marco,

With the ActiveX API you can simply query the ino:collection collection for tsd:schema documents. Each schema contains a tsd:schemaInfo element and this has children tsd:collection and tsd:doctype elements each containing a name attribute (the name of the collection and doctype resp.) So a query such as :

http://localhost/tamino/mydb/ino:collection?_XQL=/xs:schema/xs:annotation/xs:appinfo/tsd:schemaInfo

will get all schemas in the mydb database. You can process the information with DOM methods.

Hope this helps.

Stuart Fyffe-Collins
Software AG (UK) Ltd.

:slight_smile: Many thanks! This is exactly what I need!

Marco Loprete