System::Xml::Schema Namespace Reference

Classes

class  Details_XmlSchemaException
 Returns detailed information about the schema exception.
 
class  Details_XmlSchemaInferenceException
 Returns information about errors encountered by the XmlSchemaInference class while inferring a schema from an XML document.
 
class  Details_XmlSchemaValidationException
 
class  IXmlSchemaInfo
 Defines the post-schema-validation infoset of a validated XML node. More...
 
class  ValidationEventArgs
 
class  XmlAtomicValue
 
class  XmlSchema
 
class  XmlSchemaAll
 
class  XmlSchemaAnnotated
 
class  XmlSchemaAnnotation
 
class  XmlSchemaAny
 
class  XmlSchemaAnyAttribute
 
class  XmlSchemaAppInfo
 
class  XmlSchemaAttribute
 
class  XmlSchemaAttributeGroup
 
class  XmlSchemaAttributeGroupRef
 
class  XmlSchemaChoice
 
class  XmlSchemaCollection
 
class  XmlSchemaCollectionEnumerator
 
class  XmlSchemaCompilationSettings
 
class  XmlSchemaComplexContent
 
class  XmlSchemaComplexContentExtension
 
class  XmlSchemaComplexContentRestriction
 
class  XmlSchemaComplexType
 
class  XmlSchemaContent
 An abstract class for schema content. More...
 
class  XmlSchemaContentModel
 Specifies the order and structure of the child elements of a type. More...
 
class  XmlSchemaDatatype
 The XmlSchemaDatatype class is an abstract class for mapping XML Schema definition language (XSD) types to runtime types. More...
 
class  XmlSchemaDocumentation
 
class  XmlSchemaElement
 
class  XmlSchemaEnumerationFacet
 
class  XmlSchemaExternal
 
class  XmlSchemaFacet
 
class  XmlSchemaFractionDigitsFacet
 
class  XmlSchemaGroup
 
class  XmlSchemaGroupBase
 An abstract class for XmlSchemaAll, XmlSchemaChoice, or XmlSchemaSequence. More...
 
class  XmlSchemaGroupRef
 
class  XmlSchemaIdentityConstraint
 
class  XmlSchemaImport
 
class  XmlSchemaInclude
 
class  XmlSchemaInference
 
class  XmlSchemaInfo
 
class  XmlSchemaKey
 
class  XmlSchemaKeyref
 
class  XmlSchemaLengthFacet
 
class  XmlSchemaMaxExclusiveFacet
 
class  XmlSchemaMaxInclusiveFacet
 
class  XmlSchemaMaxLengthFacet
 
class  XmlSchemaMinExclusiveFacet
 
class  XmlSchemaMinInclusiveFacet
 
class  XmlSchemaMinLengthFacet
 
class  XmlSchemaNotation
 
class  XmlSchemaNumericFacet
 
class  XmlSchemaObject
 
class  XmlSchemaObjectCollection
 
class  XmlSchemaObjectEnumerator
 
class  XmlSchemaObjectTable
 
class  XmlSchemaParticle
 
class  XmlSchemaPatternFacet
 
class  XmlSchemaRedefine
 
class  XmlSchemaSequence
 
class  XmlSchemaSet
 
class  XmlSchemaSimpleContent
 
class  XmlSchemaSimpleContentExtension
 
class  XmlSchemaSimpleContentRestriction
 
class  XmlSchemaSimpleType
 
class  XmlSchemaSimpleTypeContent
 
class  XmlSchemaSimpleTypeList
 
class  XmlSchemaSimpleTypeRestriction
 
class  XmlSchemaSimpleTypeUnion
 
class  XmlSchemaTotalDigitsFacet
 
class  XmlSchemaType
 
class  XmlSchemaUnique
 
class  XmlSchemaValidator
 
class  XmlSchemaWhiteSpaceFacet
 
class  XmlSchemaXPath
 

Typedefs

using XmlSchemaInferenceException = System::ExceptionWrapper< Details_XmlSchemaInferenceException >
 
using ValidationEventHandler = System::MulticastDelegate< void(SharedPtr< Object >, SharedPtr< ValidationEventArgs >)>
 
using XmlSchemaException = System::ExceptionWrapper< Details_XmlSchemaException >
 
using XmlSchemaValidationException = System::ExceptionWrapper< Details_XmlSchemaValidationException >
 
using XmlValueGetter = System::MulticastDelegate< SharedPtr< Object >()>
 

Enumerations

enum  XmlSchemaContentProcessing { XmlSchemaContentProcessing::None, XmlSchemaContentProcessing::Skip, XmlSchemaContentProcessing::Lax, XmlSchemaContentProcessing::Strict }
 Provides information about the validation mode of any and anyAttribute element replacements. More...
 
enum  XmlSchemaContentType { XmlSchemaContentType::TextOnly, XmlSchemaContentType::Empty, XmlSchemaContentType::ElementOnly, XmlSchemaContentType::Mixed }
 
enum  XmlSchemaDatatypeVariety { XmlSchemaDatatypeVariety::Atomic, XmlSchemaDatatypeVariety::List, XmlSchemaDatatypeVariety::Union }
 Specifies the W3C XML schema data type variety of the type. More...
 
enum  XmlSchemaDerivationMethod {
  XmlSchemaDerivationMethod::Empty = 0, XmlSchemaDerivationMethod::Substitution = 0x0001, XmlSchemaDerivationMethod::Extension = 0x0002, XmlSchemaDerivationMethod::Restriction = 0x0004,
  XmlSchemaDerivationMethod::List = 0x0008, XmlSchemaDerivationMethod::Union = 0x0010, XmlSchemaDerivationMethod::All = 0x00FF, XmlSchemaDerivationMethod::None = 0x0100
}
 Provides different methods for preventing derivation. More...
 
enum  XmlSchemaForm { XmlSchemaForm::None, XmlSchemaForm::Qualified, XmlSchemaForm::Unqualified }
 Indicates if attributes or elements need to be qualified with a namespace prefix. More...
 
enum  XmlSchemaUse { XmlSchemaUse::None, XmlSchemaUse::Optional, XmlSchemaUse::Prohibited, XmlSchemaUse::Required }
 Indicator of how the attribute is used. More...
 
enum  XmlSchemaValidationFlags {
  XmlSchemaValidationFlags::None = 0x0000, XmlSchemaValidationFlags::ProcessInlineSchema = 0x0001, XmlSchemaValidationFlags::ProcessSchemaLocation = 0x0002, XmlSchemaValidationFlags::ReportValidationWarnings = 0x0004,
  XmlSchemaValidationFlags::ProcessIdentityConstraints = 0x0008, XmlSchemaValidationFlags::AllowXmlAttributes = 0x0010
}
 Specifies schema validation options used by the XmlSchemaValidator and XmlReader classes. More...
 
enum  XmlSchemaValidity { XmlSchemaValidity::NotKnown, XmlSchemaValidity::Valid, XmlSchemaValidity::Invalid }
 Represents the validity of an XML item validated by the XmlSchemaValidator class. More...
 
enum  XmlSeverityType { XmlSeverityType::Error, XmlSeverityType::Warning }
 Represents the severity of the validation event. More...
 
enum  XmlTypeCode {
  XmlTypeCode::None, XmlTypeCode::Item, XmlTypeCode::Node, XmlTypeCode::Document,
  XmlTypeCode::Element, XmlTypeCode::Attribute, XmlTypeCode::Namespace, XmlTypeCode::ProcessingInstruction,
  XmlTypeCode::Comment, XmlTypeCode::Text, XmlTypeCode::AnyAtomicType, XmlTypeCode::UntypedAtomic,
  XmlTypeCode::String, XmlTypeCode::Boolean, XmlTypeCode::Decimal, XmlTypeCode::Float,
  XmlTypeCode::Double, XmlTypeCode::Duration, XmlTypeCode::DateTime, XmlTypeCode::Time,
  XmlTypeCode::Date, XmlTypeCode::GYearMonth, XmlTypeCode::GYear, XmlTypeCode::GMonthDay,
  XmlTypeCode::GDay, XmlTypeCode::GMonth, XmlTypeCode::HexBinary, XmlTypeCode::Base64Binary,
  XmlTypeCode::AnyUri, XmlTypeCode::QName, XmlTypeCode::Notation, XmlTypeCode::NormalizedString,
  XmlTypeCode::Token, XmlTypeCode::Language, XmlTypeCode::NmToken, XmlTypeCode::Name,
  XmlTypeCode::NCName, XmlTypeCode::Id, XmlTypeCode::Idref, XmlTypeCode::Entity,
  XmlTypeCode::Integer, XmlTypeCode::NonPositiveInteger, XmlTypeCode::NegativeInteger, XmlTypeCode::Long,
  XmlTypeCode::Int, XmlTypeCode::Short, XmlTypeCode::Byte, XmlTypeCode::NonNegativeInteger,
  XmlTypeCode::UnsignedLong, XmlTypeCode::UnsignedInt, XmlTypeCode::UnsignedShort, XmlTypeCode::UnsignedByte,
  XmlTypeCode::PositiveInteger, XmlTypeCode::YearMonthDuration, XmlTypeCode::DayTimeDuration
}
 Represents the W3C XML Schema Definition Language (XSD) schema types. More...
 

Typedef Documentation

◆ ValidationEventHandler

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

Parameters
senderThe source of the event. Note Determine the type of a sender before using it in your code. You cannot assume that the sender is an instance of a particular type. The sender is also not guaranteed to not be null. Always surround your casts with failure handling logic.
eThe event data.

◆ XmlSchemaException

using System::Xml::Schema::XmlSchemaException = typedef System::ExceptionWrapper<Details_XmlSchemaException>

◆ XmlSchemaInferenceException

using System::Xml::Schema::XmlSchemaInferenceException = typedef System::ExceptionWrapper<Details_XmlSchemaInferenceException>

◆ XmlSchemaValidationException

using System::Xml::Schema::XmlSchemaValidationException = typedef System::ExceptionWrapper<Details_XmlSchemaValidationException>

◆ XmlValueGetter

A callback used by the XmlSchemaValidator class to pass attribute, text,and white space values as a run-time type compatible with the XML Schema Definition Language (XSD) type of the attribute, text, or white space.

Returns
An object containing the attribute, text, or white space value. The object is a type that corresponds to the XSD type of the attribute, text, or white space value.

Enumeration Type Documentation

◆ XmlSchemaContentProcessing

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

Enumerator
None 

Document items are not validated.

Skip 

Document items must consist of well-formed XML and are not validated by the schema.

The XML processor attempts to notify the client through a validation event handler with
ValidationEventArgs::set_Severity(XmlSeverityType::Warning) that no validation took place for the given item.
If a validation event handler has not been set up, no information is returned when the warning is produced.  
Lax 

If the associated schema is found, the document items will be validated. No errors will be thrown otherwise.

If the item is not validated, the XML processor attempts to notify the client through
a validation event handler with ValidationEventArgs::set_Severity(XmlSeverityType::Warning).
If a validation event handler has not been set up, no information is returned when the warning is produced.  
Strict 

The schema processor must find a schema associated with the indicated namespace to validate the document items.

If the processor cannot find a schema or if the items are not valid,
the XML processor attempts to notify the client through a validation event handler with
ValidationEventArgs::set_Severity(XmlSeverityType::Warning).
If a validation error occurs and a validation event handler is not provided, an exception is thrown.  

◆ XmlSchemaContentType

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

Enumerator
TextOnly 

Text-only content.

Empty 

Empty content.

ElementOnly 

Element-only content.

Mixed 

Mixed content.

◆ XmlSchemaDatatypeVariety

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

Enumerator
Atomic 

A W3C XML schema atomic type.

List 

A W3C XML schema list type.

Union 

A W3C XML schema union type.

◆ XmlSchemaDerivationMethod

Provides different methods for preventing derivation.

Enumerator
Empty 

Override default derivation method to allow any derivation.

Substitution 

Refers to derivations by Substitution.

Extension 

Refers to derivations by Extension.

Restriction 

Refers to derivations by Restriction.

List 

Refers to derivations by List.

Union 

Refers to derivations by Union.

All 

#all. Refers to all derivation methods.

None 

Accepts the default derivation method.

◆ XmlSchemaForm

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

Enumerator
None 

Element and attribute form is not specified in the schema.

Qualified 

Elements and attributes must be qualified with a namespace prefix.

Unqualified 

Elements and attributes are not required to be qualified with a namespace prefix.

◆ XmlSchemaUse

Indicator of how the attribute is used.

Enumerator
None 

Attribute use not specified.

Optional 

Attribute is optional.

Prohibited 

Attribute cannot be used.

Required 

Attribute must appear once.

◆ XmlSchemaValidationFlags

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

Enumerator
None 

Do not process identity constraints, inline schemas, schema location hints, or report schema validation warnings.

ProcessInlineSchema 

Process inline schemas encountered during validation.

ProcessSchemaLocation 

Process schema location hints (xsi:schemaLocation, xsi:noNamespaceSchemaLocation) encountered during validation.

ReportValidationWarnings 

Report schema validation warnings encountered during validation.

ProcessIdentityConstraints 

Process identity constraints (xs:ID, xs:IDREF, xs:key, xs:keyref, xs:unique) encountered during validation.

AllowXmlAttributes 

Allow xml:* attributes even if they are not defined in the schema. The attributes will be validated based on their data type.

◆ XmlSchemaValidity

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

Enumerator
NotKnown 

The validity of the XML item is not known.

Valid 

The XML item is valid.

Invalid 

The XML item is invalid.

◆ XmlSeverityType

Represents the severity of the validation event.

Enumerator
Error 

Indicates a validation error occurred when validating the instance document. This applies to document type definitions (DTDs) and XML Schema definition language (XSD) schemas. The World Wide Web Consortium (W3C) validity constraints are considered errors. If no validation event handler has been created, errors throw an exception.

Warning 

Indicates that a validation event occurred that is not an error. A warning is typically issued when there is no DTD, or XML Schema to validate a particular element or attribute against. Unlike errors, warnings do not throw an exception if there is no validation event handler.

◆ XmlTypeCode

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

Enumerator
None 

No type information.

Item 

An item such as a node or atomic value.

Node 

This value is used for internal purposes and is not intended to be used directly from your code.

Document 

This value is used for internal purposes and is not intended to be used directly from your code.

Element 

This value is used for internal purposes and is not intended to be used directly from your code.

Attribute 

This value is used for internal purposes and is not intended to be used directly from your code.

Namespace 

This value is used for internal purposes and is not intended to be used directly from your code.

ProcessingInstruction 

This value is used for internal purposes and is not intended to be used directly from your code.

Comment 

This value is used for internal purposes and is not intended to be used directly from your code.

Text 

This value is used for internal purposes and is not intended to be used directly from your code.

AnyAtomicType 

Any atomic value of a union.

UntypedAtomic 

An untyped atomic value.

String 

A W3C XML Schema xs:string type.

Boolean 

A W3C XML Schema xs:boolean type.

Decimal 

A W3C XML Schema xs:decimal type.

Float 

A W3C XML Schema xs:float type.

Double 

A W3C XML Schema xs:double type.

Duration 

A W3C XML Schema xs:Duration type.

DateTime 

A W3C XML Schema xs:dateTime type.

Time 

A W3C XML Schema xs:time type.

Date 

A W3C XML Schema xs:date type.

GYearMonth 

A W3C XML Schema xs:gYearMonth type.

GYear 

A W3C XML Schema xs:gYear type.

GMonthDay 

A W3C XML Schema xs:gMonthDay type.

GDay 

A W3C XML Schema xs:gDay type.

GMonth 

A W3C XML Schema xs:gMonth type.

HexBinary 

A W3C XML Schema xs:hexBinary type.

Base64Binary 

A W3C XML Schema xs:base64Binary type.

AnyUri 

A W3C XML Schema xs:anyURI type.

QName 

A W3C XML Schema xs:QName type.

Notation 

A W3C XML Schema xs:NOTATION type.

NormalizedString 

A W3C XML Schema xs:normalizedString type.

Token 

A W3C XML Schema xs:token type.

Language 

A W3C XML Schema xs:language type.

NmToken 

A W3C XML Schema xs:NMTOKEN type.

Name 

A W3C XML Schema xs:Name type.

NCName 

A W3C XML Schema xs:NCName type.

Id 

A W3C XML Schema xs:ID type.

Idref 

A W3C XML Schema xs:IDREF type.

Entity 

A W3C XML Schema xs:ENTITY type.

Integer 

A W3C XML Schema xs:integer type.

NonPositiveInteger 

A W3C XML Schema xs:nonPositiveInteger type.

NegativeInteger 

A W3C XML Schema xs:negativeInteger type.

Long 

A W3C XML Schema xs:long type.

Int 

A W3C XML Schema xs:int type.

Short 

A W3C XML Schema xs:short type.

Byte 

A W3C XML Schema xs:byte type.

NonNegativeInteger 

A W3C XML Schema xs:nonNegativeInteger type.

UnsignedLong 

A W3C XML Schema xs:unsignedLong type.

UnsignedInt 

A W3C XML Schema xs:unsignedInt type.

UnsignedShort 

A W3C XML Schema xs:unsignedShort type.

UnsignedByte 

A W3C XML Schema xs:unsignedByte type.

PositiveInteger 

A W3C XML Schema xs:positiveInteger type.

YearMonthDuration 

This value is used for internal purposes and is not intended to be used directly from your code.

DayTimeDuration 

This value is used for internal purposes and is not intended to be used directly from your code.