internal static void ValidationCallbackWithErrorCode(object sender, ValidationEventArgs args)
{
// CONSIDER: need the real type name
if (args.Severity == XmlSeverityType.Error)
throw new InvalidOperationException(SR.Format(SR.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message));
}