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