queryng schemas from command line

Hello all

I’d like to retrieve all defined schemas from out Tamino database. I know, I can do it with the Schema Editor, but I need to do it from the command line.

X-Machine interface would be fine, but I just couldn’t find the proper syntax.

Thank you in advance

Hi,

if you are ready to issue XMachine requests via your command line interface, you may use e.g. the following XQuery:

declare namespace tsd=“http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition
for $s in collection(“ino:collection”)/xs:schema
let $si:=$s/xs:annotation/xs:appinfo/tsd:schemaInfo
where $si/tsd:collection/@name = “myColl”
and $si/tsd:doctype/@name=“myDoctype”
return $s

Regards
Uli

Hi,

with the data loader you also can unload schemas:
inoload -function unloadschema …

Regards,
Reiner