System.Xml.Schema Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains the XML classes that provide standards-based support for XML schema definition language (XSD) schemas.
Classes
Extensions |
This class contains the LINQ to XML extension methods for XSD validation. |
ValidationEventArgs |
Returns detailed information related to the |
XmlAtomicValue |
Represents the typed value of a validated XML element or attribute. The XmlAtomicValue class cannot be inherited. |
XmlSchema |
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]. |
XmlSchemaAll |
Represents the World Wide Web Consortium (W3C) |
XmlSchemaAnnotated |
The base class for any element that can contain annotation elements. |
XmlSchemaAnnotation |
Represents the World Wide Web Consortium (W3C) |
XmlSchemaAny |
Represents the World Wide Web Consortium (W3C) |
XmlSchemaAnyAttribute |
Represents the World Wide Web Consortium (W3C) |
XmlSchemaAppInfo |
Represents the World Wide Web Consortium (W3C) |
XmlSchemaAttribute |
Represents the |
XmlSchemaAttributeGroup |
Represents the |
XmlSchemaAttributeGroupRef |
Represents the |
XmlSchemaChoice |
Represents the |
XmlSchemaCollection |
Contains a cache of XML Schema definition language (XSD) and XML-Data Reduced (XDR) schemas. The XmlSchemaCollection class is obsolete. Use XmlSchemaSet instead. |
XmlSchemaCollectionEnumerator |
Supports a simple iteration over a collection. This class cannot be inherited. |
XmlSchemaCompilationSettings |
Provides schema compilation options for the XmlSchemaSet class This class cannot be inherited. |
XmlSchemaComplexContent |
Represents the |
XmlSchemaComplexContentExtension |
Represents the |
XmlSchemaComplexContentRestriction |
Represents the |
XmlSchemaComplexType |
Represents the |
XmlSchemaContent |
An abstract class for schema content. |
XmlSchemaContentModel |
Specifies the order and structure of the child elements of a type. |
XmlSchemaDatatype |
The XmlSchemaDatatype class is an abstract class for mapping XML Schema definition language (XSD) types to Common Language Runtime (CLR) types. |
XmlSchemaDocumentation |
Represents the |
XmlSchemaElement |
Represents the |
XmlSchemaEnumerationFacet |
Represents the |
XmlSchemaException |
Returns detailed information about the schema exception. |
XmlSchemaExternal |
An abstract class. Provides information about the included schema. |
XmlSchemaFacet |
Abstract class for all facets that are used when simple types are derived by restriction. |
XmlSchemaFractionDigitsFacet |
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) |
XmlSchemaGroup |
Represents the |
XmlSchemaGroupBase |
An abstract class for XmlSchemaAll, XmlSchemaChoice, or XmlSchemaSequence. |
XmlSchemaGroupRef |
Represents the |
XmlSchemaIdentityConstraint |
Class for the identity constraints: |
XmlSchemaImport |
Represents the |
XmlSchemaInclude |
Represents the |
XmlSchemaInference |
Infers an XML Schema Definition Language (XSD) schema from an XML document. The XmlSchemaInference class cannot be inherited. |
XmlSchemaInferenceException |
Returns information about errors encountered by the XmlSchemaInference class while inferring a schema from an XML document. |
XmlSchemaInfo |
Represents the post-schema-validation infoset of a validated XML node. |
XmlSchemaKey |
This class represents the |
XmlSchemaKeyref |
This class represents the |
XmlSchemaLengthFacet |
Represents the |
XmlSchemaMaxExclusiveFacet |
Represents the |
XmlSchemaMaxInclusiveFacet |
Represents the |
XmlSchemaMaxLengthFacet |
Represents the |
XmlSchemaMinExclusiveFacet |
Represents the |
XmlSchemaMinInclusiveFacet |
Represents the |
XmlSchemaMinLengthFacet |
Represents the |
XmlSchemaNotation |
Represents the |
XmlSchemaNumericFacet |
Abstract class for defining |
XmlSchemaObject |
Represents the root class for the Xml schema object model hierarchy and serves as a base class for classes such as the XmlSchema class. |
XmlSchemaObjectCollection |
A collection of XmlSchemaObjects. |
XmlSchemaObjectEnumerator |
Represents the enumerator for the XmlSchemaObjectCollection. |
XmlSchemaObjectTable |
Provides the collections for contained elements in the XmlSchema class (for example, Attributes, AttributeGroups, Elements, and so on). |
XmlSchemaParticle |
Abstract class for that is the base class for all particle types (e.g. XmlSchemaAny). |
XmlSchemaPatternFacet |
Represents the |
XmlSchemaRedefine |
Represents the |
XmlSchemaSequence |
Represents the |
XmlSchemaSet |
Contains a cache of XML Schema definition language (XSD) schemas. |
XmlSchemaSimpleContent |
Represents the |
XmlSchemaSimpleContentExtension |
Represents the |
XmlSchemaSimpleContentRestriction |
Represents the |
XmlSchemaSimpleType |
Represents the |
XmlSchemaSimpleTypeContent |
Abstract class for simple type content classes. |
XmlSchemaSimpleTypeList |
Represents the |
XmlSchemaSimpleTypeRestriction |
Represents the |
XmlSchemaSimpleTypeUnion |
Represents the |
XmlSchemaTotalDigitsFacet |
Represents the |
XmlSchemaType |
The base class for all simple types and complex types. |
XmlSchemaUnique |
Represents the |
XmlSchemaValidationException |
Represents the exception thrown when XML Schema Definition Language (XSD) schema validation errors and warnings are encountered in an XML document being validated. |
XmlSchemaValidator |
Represents an XML Schema Definition Language (XSD) Schema validation engine. The XmlSchemaValidator class cannot be inherited. |
XmlSchemaWhiteSpaceFacet |
Represents the World Wide Web Consortium (W3C) |
XmlSchemaXPath |
Represents the World Wide Web Consortium (W3C) |
Interfaces
IXmlSchemaInfo |
Defines the post-schema-validation infoset of a validated XML node. |
Enums
XmlSchemaContentProcessing |
Provides information about the validation mode of |
XmlSchemaContentType |
Enumerations for the content model of the complex type. This represents the content in the post-schema-validation information set (infoset). |
XmlSchemaDatatypeVariety |
Specifies the W3C XML schema data type variety of the type. |
XmlSchemaDerivationMethod |
Provides different methods for preventing derivation. |
XmlSchemaForm |
Indicates if attributes or elements need to be qualified with a namespace prefix. |
XmlSchemaInference.InferenceOption |
Affects occurrence and type information inferred by the XmlSchemaInference class for elements and attributes in an XML document. |
XmlSchemaUse |
Indicator of how the attribute is used. |
XmlSchemaValidationFlags |
Specifies schema validation options used by the XmlSchemaValidator and XmlReader classes. |
XmlSchemaValidity |
Represents the validity of an XML item validated by the XmlSchemaValidator class. |
XmlSeverityType |
Represents the severity of the validation event. |
XmlTypeCode |
Represents the W3C XML Schema Definition Language (XSD) schema types. |
Delegates
ValidationEventHandler |
Represents the callback method that will handle XML schema validation events and the ValidationEventArgs. |
XmlValueGetter |
A |
Remarks
Important
- 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.