Tamino API for .NET Version 8.2.2
 —  Tamino API for .NET  —

Processing Tamino Schema Commands

The class TaminoSchemaCommand provides methods for defining and undefining Tamino doctypes via XML schema documents. It also includes methods for requesting information about existing doctypes in a Tamino database. For an example that shows how to use the Define and Undefine methods, see the Define and Undefine examples in the SimpleSamples.

The following example shows how to read an XML schema with a specified name in a specified collection from Tamino and access it via the .NET class System.Xml.Schema.XmlSchema.

Example

...
TaminoSchemaCommand schemaCommand = connection.CreateSchemaCommand();
XmlNodeList nodeList = schemaCommand.GetSchema("mycollection", "myschemaname")
// in this example the maximal count of nodes in nodeList is 1.

foreach (XmlNode node in nodeList )
{
	XmlNodeReader reader = new XmlNodeReader(node);
	XmlSchema     schema = XmlSchema.Read(reader, null);
    ...
}
...

Top of page