private void btnValidate_Click( object sender, EventArgs e )
{
ValidateToSchema();
/*
var error = new StringBuilder( 1024*1024*6 );
InstrumentDescription instrument = InstrumentDescription;
if (instrument != null)
{
if (!SchemaManager.ValidateXml( instrument.Serialize(), ATMLCommon.InstrumentNameSpace, error ))
{
ATMLErrorForm.ShowValidationMessage(
string.Format( "The \"{0}\" Instrument has failed validation against the {1} ATML schema.",
instrument.name, ATMLCommon.InstrumentNameSpace ),
error.ToString(),
"Note: This error will not prevent you from continuing." );
}
else
{
MessageBox.Show( @"This Instrument generated valid ATML" );
}
}
*/
}