IXmlSchemaType Interface

.NET Framework Class Library | System.Xml

Overview

The IXmlSchemaType interface represents an XML Schema type definition within the System.Xml namespace. It provides a contract for accessing information about XML Schema types, enabling interoperability and advanced XML processing scenarios.

This interface is fundamental for working with typed XML data, allowing developers to understand and manipulate the structure and constraints defined by XML Schemas.

Syntax

public interface IXmlSchemaType
{
    // Properties
    string Name { get; }
    XmlSchemaContentType ContentType { get; }
    // ... other members
}

Members

The IXmlSchemaType interface defines the following members:

Properties

Name Description
Name Gets the qualified name of the schema type.
ContentType Gets the content type of the schema type (e.g., Element-only, Text-only, Mixed).
BaseTypes Gets a collection of the base types from which this type derives.
Datatype Gets the underlying XmlSchemaDatatype if the type is a simple type.

Methods

Name Description
IsDerivedFrom(string typeName) Determines if this schema type is derived from another specified type.

Requirements

Component Value
Namespace System.Xml
Assembly System.Xml.dll

See Also