mirror of https://github.com/winsw/winsw
Rethrow resolved
parent
6abbf6ff2d
commit
17524cd391
|
@ -107,21 +107,13 @@ namespace winsw
|
||||||
|
|
||||||
Assembly a = Assembly.GetExecutingAssembly();
|
Assembly a = Assembly.GetExecutingAssembly();
|
||||||
|
|
||||||
try
|
using (Stream schemaStream = a.GetManifestResourceStream("winsw.XMLSchema.xsd"))
|
||||||
{
|
{
|
||||||
using (Stream schemaStream = a.GetManifestResourceStream("winsw.XMLSchema.xsd"))
|
using (XmlReader schemaReader = XmlReader.Create(schemaStream))
|
||||||
{
|
{
|
||||||
using (XmlReader schemaReader = XmlReader.Create(schemaStream))
|
settings.Schemas.Add(null, schemaReader);
|
||||||
{
|
|
||||||
settings.Schemas.Add(null, schemaReader);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
|
||||||
{
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
|
|
||||||
settings.ValidationType = ValidationType.Schema;
|
settings.ValidationType = ValidationType.Schema;
|
||||||
settings.ValidationEventHandler += new ValidationEventHandler(XmlValidationEventHandler);
|
settings.ValidationEventHandler += new ValidationEventHandler(XmlValidationEventHandler);
|
||||||
|
|
Loading…
Reference in New Issue