C# Class System.Xml.DocumentSchemaValidator

Inheritance: IXmlNamespaceResolver
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
AncestorTypeHasWildcard bool
CheckNodeSequenceCapacity void
CreateTypeFinderValidator System.Xml.Schema.XmlSchemaValidator
CreateValidator void
FindSchemaInfo System.Xml.Schema.XmlSchemaAttribute
FindSchemaInfo System.Xml.Schema.XmlSchemaObject
GetComplexType System.Xml.Schema.XmlSchemaComplexType
GetDefaultPrefix string
GetNodeValue object
GetTypeFromAncestors System.Xml.Schema.XmlSchemaObject
InternalValidationCallBack void
SetDefaultAttributeSchemaInfo void
TypeFinderCallBack void
ValidateAttributes void
ValidateChildrenTillNextAncestor void
ValidateElement void
ValidateNode void
ValidateSingleElement void

Méthodes publiques

Méthode Description
DocumentSchemaValidator ( XmlDocument ownerDocument, XmlSchemaSet schemas, ValidationEventHandler eventHandler ) : System
GetNamespacesInScope ( XmlNamespaceScope scope ) : string>.IDictionary
LookupNamespace ( string prefix ) : string
LookupPrefix ( string namespaceName ) : string
Validate ( XmlNode nodeToValidate ) : bool

Private Methods

Méthode Description
AncestorTypeHasWildcard ( XmlSchemaObject ancestorType ) : bool
CheckNodeSequenceCapacity ( int currentIndex ) : void
CreateTypeFinderValidator ( XmlSchemaObject partialValidationType ) : XmlSchemaValidator
CreateValidator ( XmlSchemaObject partialValidationType, XmlSchemaValidationFlags validationFlags ) : void
FindSchemaInfo ( XmlAttribute attributeToValidate ) : XmlSchemaAttribute
FindSchemaInfo ( XmlElement elementToValidate ) : XmlSchemaObject
GetComplexType ( XmlSchemaObject schemaObject ) : XmlSchemaComplexType
GetDefaultPrefix ( string attributeNS ) : string
GetNodeValue ( ) : object
GetTypeFromAncestors ( XmlElement elementToValidate, XmlSchemaObject ancestorType, int ancestorsCount ) : XmlSchemaObject
InternalValidationCallBack ( object sender, ValidationEventArgs arg ) : void
SetDefaultAttributeSchemaInfo ( XmlSchemaAttribute schemaAttribute ) : void
TypeFinderCallBack ( object sender, ValidationEventArgs arg ) : void
ValidateAttributes ( XmlElement elementNode ) : void
ValidateChildrenTillNextAncestor ( XmlNode parentNode, XmlNode childToStopAt ) : void
ValidateElement ( ) : void
ValidateNode ( XmlNode node ) : void
ValidateSingleElement ( XmlElement elementNode, bool skipToEnd, XmlSchemaInfo newSchemaInfo ) : void

Method Details

DocumentSchemaValidator() public méthode

public DocumentSchemaValidator ( XmlDocument ownerDocument, XmlSchemaSet schemas, ValidationEventHandler eventHandler ) : System
ownerDocument XmlDocument
schemas System.Xml.Schema.XmlSchemaSet
eventHandler ValidationEventHandler
Résultat System

GetNamespacesInScope() public méthode

public GetNamespacesInScope ( XmlNamespaceScope scope ) : string>.IDictionary
scope XmlNamespaceScope
Résultat string>.IDictionary

LookupNamespace() public méthode

public LookupNamespace ( string prefix ) : string
prefix string
Résultat string

LookupPrefix() public méthode

public LookupPrefix ( string namespaceName ) : string
namespaceName string
Résultat string

Validate() public méthode

public Validate ( XmlNode nodeToValidate ) : bool
nodeToValidate XmlNode
Résultat bool