Get docTypes in a collection

I can get all the collections by the following code
TaminoStore store = new TaminoStore(“http://localhost/tamino/mydb”,userID,passWD);
Iterator iter = store.getCollectionNames().iterator();
while (iter.hasNext()) {
String coll = (String) iter.next();
System.out.println("Collection : " + coll);
}


How can I get the list of docType in a collection?
Can you give sample code?
Thanks.

The TaminoStore doesn’t have a getDoctypesNames method. However, its quite easy to add one. You could use the getCollectionNames method as a starting point and replace the getCollectionNames call inside with a getDoctypeNames call.

Michael

Software AG Germany, Darmstadt