System.Xml.Schema.XmlSchema Members

The members of System.Xml.Schema.XmlSchema are listed below.

See Also: Inherited members from System.Xml.Schema.XmlSchemaObject

Public Constructors

Initializes a new instance of the System.Xml.Schema.XmlSchema class.

Public Fields

const
InstanceNamespacestring.

The XML schema instance namespace. This field is constant.

const
Namespacestring.

The XML schema namespace. This field is constant.

Public Properties

AttributeFormDefaultXmlSchemaForm.

Gets or sets the form for attributes declared in the target namespace of the schema.

[read-only]
AttributeGroupsXmlSchemaObjectTable.

Gets the post-schema-compilation value of all the global attribute groups in the schema.

[read-only]
AttributesXmlSchemaObjectTable.

Gets the post-schema-compilation value for all the attributes in the schema.

BlockDefaultXmlSchemaDerivationMethod.

Gets or sets the blockDefault attribute which sets the default value of the block attribute on element and complex types in the targetNamespace of the schema.

ElementFormDefaultXmlSchemaForm.

Gets or sets the form for elements declared in the target namespace of the schema.

[read-only]
ElementsXmlSchemaObjectTable.

Gets the post-schema-compilation value for all the elements in the schema.

FinalDefaultXmlSchemaDerivationMethod.

Gets or sets the finalDefault attribute which sets the default value of the final attribute on elements and complex types in the target namespace of the schema.

[read-only]
GroupsXmlSchemaObjectTable.

Gets the post-schema-compilation value of all the groups in the schema.

Idstring.

Gets or sets the string ID.

[read-only]
IncludesXmlSchemaObjectCollection.

Gets the collection of included and imported schemas.

[read-only]
IsCompiledbool.

Indicates if the schema has been compiled.

[read-only]
ItemsXmlSchemaObjectCollection.

Gets the collection of schema elements in the schema and is used to add new element types at the schema element level.

[read-only]
NotationsXmlSchemaObjectTable.

Gets the post-schema-compilation value for all notations in the schema.

[read-only]
SchemaTypesXmlSchemaObjectTable.

Gets the post-schema-compilation value of all schema types in the schema.

TargetNamespacestring.

Gets or sets the Uniform Resource Identifier (URI) of the schema target namespace.

UnhandledAttributesSystem.Xml.XmlAttribute[].

Gets and sets the qualified attributes which do not belong to the schema target namespace.

Versionstring.

Gets or sets the version of the schema.

Public Methods

Compile(ValidationEventHandler)

Compiles the XML Schema Object Model (SOM) into schema information for validation. Used to check the syntactic and semantic structure of the programmatically built SOM. Semantic validation checking is performed during compilation.

Compile(ValidationEventHandler, System.Xml.XmlResolver)

Compiles the XML Schema Object Model (SOM) into schema information for validation. Used to check the syntactic and semantic structure of the programmatically built SOM. Semantic validation checking is performed during compilation.

static
Read(System.IO.Stream, ValidationEventHandler) : XmlSchema

Reads an XML Schema from the supplied stream.

static
Read(System.IO.TextReader, ValidationEventHandler) : XmlSchema

Reads an XML Schema from the supplied System.IO.TextReader.

static
Read(System.Xml.XmlReader, ValidationEventHandler) : XmlSchema

Reads an XML Schema from the supplied System.Xml.XmlReader.

Write(System.IO.Stream)

Writes the XML Schema to the supplied data stream.

Write(System.IO.TextWriter)

Writes the XML Schema to the supplied System.IO.TextWriter.

Write(System.Xml.XmlWriter)

Writes the XML Schema to the supplied System.Xml.XmlWriter.

Write(System.IO.Stream, System.Xml.XmlNamespaceManager)

Writes the XML Schema to the supplied System.IO.Stream using the System.Xml.XmlNamespaceManager specified.

Write(System.IO.TextWriter, System.Xml.XmlNamespaceManager)

Writes the XML Schema to the supplied System.IO.TextWriter.

Write(System.Xml.XmlWriter, System.Xml.XmlNamespaceManager)

Writes the XML Schema to the supplied System.Xml.XmlWriter.