C# Class System.Xml.DocumentSchemaValidator

Inheritance: IXmlNamespaceResolver
显示文件 Open project: dotnet/corefx Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

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

GetNamespacesInScope() public method

public GetNamespacesInScope ( XmlNamespaceScope scope ) : string>.IDictionary
scope XmlNamespaceScope
return string>.IDictionary

LookupNamespace() public method

public LookupNamespace ( string prefix ) : string
prefix string
return string

LookupPrefix() public method

public LookupPrefix ( string namespaceName ) : string
namespaceName string
return string

Validate() public method

public Validate ( XmlNode nodeToValidate ) : bool
nodeToValidate XmlNode
return bool