C# Class Microsoft.Protocols.TestSuites.MS_WWSP.XmlValidator

A Class represent the XML schema validation function.
Afficher le fichier Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Méthodes publiques

Méthode Description
GenerateValidationResult ( ) : string

This method is used to generate xml validation result information by using the record errors and warnings.

ValidateXml ( List schemaList, string xmlString ) : ValidationResult

Validate a piece of Xml fragment according the given Xml Schema. Both Xml Schema and Xml fragment are String type.

Private Methods

Méthode Description
GetTargetNamespace ( string fullSchema ) : string

This method is used to get the target namespace from a schema string.

ValidationCallBack ( object sender, ValidationEventArgs args ) : void

This method is a callback function which is used to record the schema validation errors and warnings.

Method Details

GenerateValidationResult() public static méthode

This method is used to generate xml validation result information by using the record errors and warnings.
public static GenerateValidationResult ( ) : string
Résultat string

ValidateXml() public static méthode

Validate a piece of Xml fragment according the given Xml Schema. Both Xml Schema and Xml fragment are String type.
public static ValidateXml ( List schemaList, string xmlString ) : ValidationResult
schemaList List Xml Schema string.
xmlString string Xml fragment string.
Résultat ValidationResult