private void btnValidate_Click(object sender, EventArgs e)
{
StringBuilder error = new StringBuilder(1024 * 1024 * 6);
if( !SchemaManager.ValidateXml(atmlPreviewPanel.Text, ATMLCommon.TestConfigurationNameSpace, error) )
{
ATMLErrorForm.ShowValidationMessage(
string.Format("The Test Configuration has failed validation against the ATML schema."),
error.ToString(),
"Note: This error will not prevent you from continuing.");
}
else
{
MessageBox.Show(@"This Test Configuration has generated a valid ATML document.");
}
}