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
.
... 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); ... } ...