C# Class Brunet.Applications.ConfigurationValidator

Mostrar archivo Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_failed bool
_message string

Public Methods

Method Description
Validate ( string config_path, string xsd_path ) : bool

Read xml file and check validity using given xsd file. brunet and ipop configuration file input type is file name, and dhcp configuration file content is passed as a string.

Protected Methods

Method Description
ValidEventHandler ( object sender, ValidationEventArgs args ) : void

Method Details

ValidEventHandler() protected method

protected ValidEventHandler ( object sender, ValidationEventArgs args ) : void
sender object
args System.Xml.Schema.ValidationEventArgs
return void

Validate() public method

Read xml file and check validity using given xsd file. brunet and ipop configuration file input type is file name, and dhcp configuration file content is passed as a string.
public Validate ( string config_path, string xsd_path ) : bool
config_path string
xsd_path string
return bool

Property Details

_failed protected_oe property

protected bool _failed
return bool

_message protected_oe property

protected string _message
return string