C# Класс Microsoft.Protocols.TestSuites.MS_WWSP.XmlValidator

A Class represent the XML schema validation function.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

GenerateValidationResult() публичный статический Метод

This method is used to generate xml validation result information by using the record errors and warnings.
public static GenerateValidationResult ( ) : string
Результат string

ValidateXml() публичный статический Метод

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.
Результат ValidationResult