public void ValidatorCallback(ValInfoBasic viBasic)
{
ValidationInfo vi=new ValidationInfo(viBasic);
string sCode = (vi.GetErrorID()!=null)? vi.GetErrorID() : "?????";
string sType = ValInfoTypeToString( vi.GetValInfoType() );
string sTable = (vi.GetOTTag()!=null)? "'"+vi.GetOTTag()+"'" : "";
string sMsg = vi.GetString();
string sDetails = vi.GetDetails();
m_xmlWriter.WriteStartElement("Report");
// I do not know why this try-catch is here.
try {
m_xmlWriter.WriteAttributeString("ErrorType", sType);
m_xmlWriter.WriteAttributeString("ErrorCode", sCode);
m_xmlWriter.WriteAttributeString("Message", sMsg);
if (sDetails != null) {
m_xmlWriter.WriteAttributeString("Details", sDetails);
}
if (viBasic.TestName != null) {
m_xmlWriter.WriteAttributeString("TestName",
viBasic.TestName);
}
}
catch(Exception) {
Debug.Assert(false);
}
m_xmlWriter.WriteEndElement();
m_xmlWriter.WriteWhitespace("\r\n");
}