C# 클래스 Microsoft.Protocols.TestSuites.MS_WWSP.XmlValidator

A Class represent the XML schema validation function.
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites 1 사용 예제들

공개 메소드들

메소드 설명
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