System.Xml.Schema
TOC
Collapse the table of content
Expand the table of content

System.Xml.Schema Namespace

 

The System.Xml.Schema namespace contains the XML classes that provide standards-based support for XML schema definition language (XSD) schemas.

ClassDescription
System_CAPS_pubclassExtensions

This class contains the LINQ to XML extension methods for XSD validation.

System_CAPS_pubclassValidationEventArgs

Returns detailed information related to the ValidationEventHandler.

System_CAPS_pubclassXmlAtomicValue

Represents the typed value of a validated XML element or attribute. The XmlAtomicValue class cannot be inherited.

System_CAPS_pubclassXmlSchema

An in-memory representation of an XML Schema, as specified in the World Wide Web Consortium (W3C) XML Schema Part 1: Structures and XML Schema Part 2: Datatypes specifications.

System_CAPS_pubclassXmlSchemaAll

Represents the World Wide Web Consortium (W3C) all element (compositor).

System_CAPS_pubclassXmlSchemaAnnotated

The base class for any element that can contain annotation elements.

System_CAPS_pubclassXmlSchemaAnnotation

Represents the World Wide Web Consortium (W3C) annotation element.

System_CAPS_pubclassXmlSchemaAny

Represents the World Wide Web Consortium (W3C) any element.

System_CAPS_pubclassXmlSchemaAnyAttribute

Represents the World Wide Web Consortium (W3C) anyAttribute element.

System_CAPS_pubclassXmlSchemaAppInfo

Represents the World Wide Web Consortium (W3C) appinfo element.

System_CAPS_pubclassXmlSchemaAttribute

Represents the attribute element from the XML Schema as specified by the World Wide Web Consortium (W3C). Attributes provide additional information for other document elements. The attribute tag is nested between the tags of a document's element for the schema. The XML document displays attributes as named items in the opening tag of an element.

System_CAPS_pubclassXmlSchemaAttributeGroup

Represents the attributeGroup element from the XML Schema as specified by the World Wide Web Consortium (W3C). AttributesGroups provides a mechanism to group a set of attribute declarations so that they can be incorporated as a group into complex type definitions.

System_CAPS_pubclassXmlSchemaAttributeGroupRef

Represents the attributeGroup element with the ref attribute from the XML Schema as specified by the World Wide Web Consortium (W3C). AttributesGroupRef is the reference for an attributeGroup, name property contains the attribute group being referenced.

System_CAPS_pubclassXmlSchemaChoice

Represents the choice element (compositor) from the XML Schema as specified by the World Wide Web Consortium (W3C). The choice allows only one of its children to appear in an instance.

System_CAPS_pubclassXmlSchemaCollection

Obsolete.Contains a cache of XML Schema definition language (XSD) and XML-Data Reduced (XDR) schemas. The XmlSchemaCollection class class is obsolete. Use XmlSchemaSet instead.

System_CAPS_pubclassXmlSchemaCollectionEnumerator

Supports a simple iteration over a collection. This class cannot be inherited.

System_CAPS_pubclassXmlSchemaCompilationSettings

Provides schema compilation options for the XmlSchemaSet class This class cannot be inherited.

System_CAPS_pubclassXmlSchemaComplexContent

Represents the complexContent element from XML Schema as specified by the World Wide Web Consortium (W3C). This class represents the complex content model for complex types. It contains extensions or restrictions on a complex type that has either only elements or mixed content.

System_CAPS_pubclassXmlSchemaComplexContentExtension

Represents the extension element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is for complex types with complex content model derived by extension. It extends the complex type by adding attributes or elements.

System_CAPS_pubclassXmlSchemaComplexContentRestriction

Represents the restriction element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is for complex types with a complex content model derived by restriction. It restricts the contents of the complex type to a subset of the inherited complex type.

System_CAPS_pubclassXmlSchemaComplexType

Represents the complexType element from XML Schema as specified by the World Wide Web Consortium (W3C). This class defines a complex type that determines the set of attributes and content of an element.

System_CAPS_pubclassXmlSchemaContent

An abstract class for schema content.

System_CAPS_pubclassXmlSchemaContentModel

Specifies the order and structure of the child elements of a type.

System_CAPS_pubclassXmlSchemaDatatype

The XmlSchemaDatatype class is an abstract class for mapping XML Schema definition language (XSD) types to Common Language Runtime (CLR) types.

System_CAPS_pubclassXmlSchemaDocumentation

Represents the documentation element from XML Schema as specified by the World Wide Web Consortium (W3C). This class specifies information to be read or used by humans within an annotation.

System_CAPS_pubclassXmlSchemaElement

Represents the element element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is the base class for all particle types and is used to describe an element in an XML document.

System_CAPS_pubclassXmlSchemaEnumerationFacet

Represents the enumeration facet from XML Schema as specified by the World Wide Web Consortium (W3C). This class specifies a list of valid values for a simpleType element. Declaration is contained within a restriction declaration.

System_CAPS_pubclassXmlSchemaException

Returns detailed information about the schema exception.

System_CAPS_pubclassXmlSchemaExternal

An abstract class. Provides information about the included schema.

System_CAPS_pubclassXmlSchemaFacet

Abstract class for all facets that are used when simple types are derived by restriction.

System_CAPS_pubclassXmlSchemaFractionDigitsFacet

Specifies a restriction on the number of digits that can be entered for the fraction value of a simpleType element. The value of fractionDigits must be a positive integer. Represents the World Wide Web Consortium (W3C) fractionDigits facet.

System_CAPS_pubclassXmlSchemaGroup

Represents the group element from XML Schema as specified by the World Wide Web Consortium (W3C). This class defines groups at the schema level that are referenced from the complex types. It groups a set of element declarations so that they can be incorporated as a group into complex type definitions.

System_CAPS_pubclassXmlSchemaGroupBase

An abstract class for XmlSchemaAll, XmlSchemaChoice, or XmlSchemaSequence.

System_CAPS_pubclassXmlSchemaGroupRef

Represents the group element with ref attribute from the XML Schema as specified by the World Wide Web Consortium (W3C). This class is used within complex types that reference a group defined at the schema level.

System_CAPS_pubclassXmlSchemaIdentityConstraint

Class for the identity constraints: key, keyref, and unique elements.

System_CAPS_pubclassXmlSchemaImport

Represents the import element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is used to import schema components from other schemas.

System_CAPS_pubclassXmlSchemaInclude

Represents the include element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is used to include declarations and definitions from an external schema. The included declarations and definitions are then available for processing in the containing schema.

System_CAPS_pubclassXmlSchemaInference

Infers an XML Schema Definition Language (XSD) schema from an XML document. The XmlSchemaInference class cannot be inherited.

System_CAPS_pubclassXmlSchemaInferenceException

Returns information about errors encountered by the XmlSchemaInference class while inferring a schema from an XML document.

System_CAPS_pubclassXmlSchemaInfo

Represents the post-schema-validation infoset of a validated XML node.

System_CAPS_pubclassXmlSchemaKey

This class represents the key element from XMLSchema as specified by the World Wide Web Consortium (W3C).

System_CAPS_pubclassXmlSchemaKeyref

This class represents the keyref element from XMLSchema as specified by the World Wide Web Consortium (W3C).

System_CAPS_pubclassXmlSchemaLengthFacet

Represents the length facet from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the length of a simpleType element on the data type.

System_CAPS_pubclassXmlSchemaMaxExclusiveFacet

Represents the maxExclusive element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the maximum value of a simpleType element. The element value must be less than the value of the maxExclusive element.

System_CAPS_pubclassXmlSchemaMaxInclusiveFacet

Represents the maxInclusive element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the maximum value of a simpleType element. The element value must be less than or equal to the value of the maxInclusive element.

System_CAPS_pubclassXmlSchemaMaxLengthFacet

Represents the maxLength element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the maximum length of the data value of a simpleType element. The length must be less than the value of the maxLength element.

System_CAPS_pubclassXmlSchemaMinExclusiveFacet

Represents the minExclusive element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the minimum value of a simpleType element. The element value must be greater than the value of the minExclusive element.

System_CAPS_pubclassXmlSchemaMinInclusiveFacet

Represents the minInclusive element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the minimum value of a simpleType element. The element value must be greater than or equal to the value of the minInclusive element.

System_CAPS_pubclassXmlSchemaMinLengthFacet

Represents the minLength element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the minimum length of the data value of a simpleType element. The length must be greater than the value of the minLength element.

System_CAPS_pubclassXmlSchemaNotation

Represents the notation element from XML Schema as specified by the World Wide Web Consortium (W3C). An XML Schema notation declaration is a reconstruction of XML 1.0 NOTATION declarations. The purpose of notations is to describe the format of non-XML data within an XML document.

System_CAPS_pubclassXmlSchemaNumericFacet

Abstract class for defining numeric facets. This class is the base class for numeric facet classes such as XmlSchemaMinLengthFacet

System_CAPS_pubclassXmlSchemaObject

Represents the root class for the Xml schema object model hierarchy and serves as a base class for classes such as the XmlSchema class.

System_CAPS_pubclassXmlSchemaObjectCollection

A collection of XmlSchemaObjects.

System_CAPS_pubclassXmlSchemaObjectEnumerator

Represents the enumerator for the XmlSchemaObjectCollection.

System_CAPS_pubclassXmlSchemaObjectTable

Provides the collections for contained elements in the XmlSchema class (for example, Attributes, AttributeGroups, Elements, and so on).

System_CAPS_pubclassXmlSchemaParticle

Abstract class for that is the base class for all particle types (e.g. XmlSchemaAny).

System_CAPS_pubclassXmlSchemaPatternFacet

Represents the pattern element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the value entered for a simpleType element.

System_CAPS_pubclassXmlSchemaRedefine

Represents the redefine element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to allow simple and complex types, groups and attribute groups from external schema files to be redefined in the current schema. This class can also be used to provide versioning for the schema elements.

System_CAPS_pubclassXmlSchemaSequence

Represents the sequence element (compositor) from the XML Schema as specified by the World Wide Web Consortium (W3C). The sequence requires the elements in the group to appear in the specified sequence within the containing element.

System_CAPS_pubclassXmlSchemaSet

Contains a cache of XML Schema definition language (XSD) schemas.

System_CAPS_pubclassXmlSchemaSimpleContent

Represents the simpleContent element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is for simple and complex types with simple content model.

System_CAPS_pubclassXmlSchemaSimpleContentExtension

Represents the extension element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to derive simple types by extension. Such derivations are used to extend the simple type content of the element by adding attributes.

System_CAPS_pubclassXmlSchemaSimpleContentRestriction

Represents the restriction element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to derive simple types by restriction. Such derivations can be used to restrict the range of values for the element to a subset of the values specified in the inherited simple type.

System_CAPS_pubclassXmlSchemaSimpleType

Represents the simpleType element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). This class defines a simple type. Simple types can specify information and constraints for the value of attributes or elements with text-only content.

System_CAPS_pubclassXmlSchemaSimpleTypeContent

Abstract class for simple type content classes.

System_CAPS_pubclassXmlSchemaSimpleTypeList

Represents the list element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to define a simpleType element as a list of values of a specified data type.

System_CAPS_pubclassXmlSchemaSimpleTypeRestriction

Represents the restriction element for simple types from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used restricting simpleType element.

System_CAPS_pubclassXmlSchemaSimpleTypeUnion

Represents the union element for simple types from XML Schema as specified by the World Wide Web Consortium (W3C). A union datatype can be used to specify the content of a simpleType. The value of the simpleType element must be any one of a set of alternative datatypes specified in the union. Union types are always derived types and must comprise at least two alternative datatypes.

System_CAPS_pubclassXmlSchemaTotalDigitsFacet

Represents the totalDigits facet from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the number of digits that can be entered for the value of a simpleType element. That value of totalDigits must be a positive integer.

System_CAPS_pubclassXmlSchemaType

The base class for all simple types and complex types.

System_CAPS_pubclassXmlSchemaUnique

Represents the unique element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to identify a unique constraint among a set of elements.

System_CAPS_pubclassXmlSchemaValidationException

Represents the exception thrown when XML Schema Definition Language (XSD) schema validation errors and warnings are encountered in an XML document being validated.

System_CAPS_pubclassXmlSchemaValidator

Represents an XML Schema Definition Language (XSD) Schema validation engine. The XmlSchemaValidator class cannot be inherited.

System_CAPS_pubclassXmlSchemaWhiteSpaceFacet

Represents the World Wide Web Consortium (W3C) whiteSpace facet.

System_CAPS_pubclassXmlSchemaXPath

Represents the World Wide Web Consortium (W3C) selector element.

InterfaceDescription
System_CAPS_pubinterfaceIXmlSchemaInfo

Defines the post-schema-validation infoset of a validated XML node.

DelegateDescription
System_CAPS_pubdelegateValidationEventHandler

Represents the callback method that will handle XML schema validation events and the ValidationEventArgs.

System_CAPS_pubdelegateXmlValueGetter

A delegate used by the XmlSchemaValidator class to pass attribute, text, and white space values as a Common Language Runtime (CLR) type compatible with the XML Schema Definition Language (XSD) type of the attribute, text, or white space.

EnumerationDescription
System_CAPS_pubenumXmlSchemaInference.InferenceOption

Affects occurrence and type information inferred by the XmlSchemaInference class for elements and attributes in an XML document.

System_CAPS_pubenumXmlSchemaContentProcessing

Provides information about the validation mode of any and anyAttribute element replacements.

System_CAPS_pubenumXmlSchemaContentType

Enumerations for the content model of the complex type. This represents the content in the post-schema-validation information set (infoset).

System_CAPS_pubenumXmlSchemaDatatypeVariety

Specifies the W3C XML schema data type variety of the type.

System_CAPS_pubenumXmlSchemaDerivationMethod

Provides different methods for preventing derivation.

System_CAPS_pubenumXmlSchemaForm

Indicates if attributes or elements need to be qualified with a namespace prefix.

System_CAPS_pubenumXmlSchemaUse

Indicator of how the attribute is used.

System_CAPS_pubenumXmlSchemaValidationFlags

Specifies schema validation options used by the XmlSchemaValidator and XmlReader classes.

System_CAPS_pubenumXmlSchemaValidity

Represents the validity of an XML item validated by the XmlSchemaValidator class.

System_CAPS_pubenumXmlSeverityType

Represents the severity of the validation event.

System_CAPS_pubenumXmlTypeCode

Represents the W3C XML Schema Definition Language (XSD) schema types.

System_CAPS_security Security Note
  • Do not use schemas from unknown or untrusted sources or locations. Doing so will compromise the security of your code.

  • XML schemas (including inline schemas) are inherently vulnerable to denial of service attacks; do not accept them in untrusted scenarios.

  • Schema validation error messages and exceptions may expose sensitive information about the content model or URI paths to the schema file. Be careful not to expose this information to untrusted callers.

  • Additional security considerations are covered in the Remarks section of the APIs in this namespace.

Return to top
Show:
© 2016 Microsoft